mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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"`)
|
||||
.having(`COUNT(DISTINCT faces."personId") = :personCount`, { personCount: personIds.length });
|
||||
builder.addCommonTableExpression(cte, 'face_ids').innerJoin('face_ids', 'a', 'a."assetId" = asset.id');
|
||||
|
||||
builder.getQuery(); // typeorm mixes up parameters without this (੭ °ཀ°)੭
|
||||
}
|
||||
|
||||
if (withStacked) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue