mirror of
https://github.com/immich-app/immich.git
synced 2025-02-04 01:09:14 -05:00
fix(server): typeorm (੭ °ཀ°)੭ (#13411)
This commit is contained in:
parent
e183ff6feb
commit
5a3e352950
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,8 @@ export function searchAssetBuilder(
|
||||||
.groupBy(`faces."assetId"`)
|
.groupBy(`faces."assetId"`)
|
||||||
.having(`COUNT(DISTINCT faces."personId") = :personCount`, { personCount: personIds.length });
|
.having(`COUNT(DISTINCT faces."personId") = :personCount`, { personCount: personIds.length });
|
||||||
builder.addCommonTableExpression(cte, 'face_ids').innerJoin('face_ids', 'a', 'a."assetId" = asset.id');
|
builder.addCommonTableExpression(cte, 'face_ids').innerJoin('face_ids', 'a', 'a."assetId" = asset.id');
|
||||||
|
|
||||||
|
builder.getQuery(); // typeorm mixes up parameters without this (੭ °ཀ°)੭
|
||||||
}
|
}
|
||||||
|
|
||||||
if (withStacked) {
|
if (withStacked) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue