Skip to content

Commit

Permalink
fix(server): typeorm (੭ °ཀ°)੭ (immich-app#13411)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored and Yosi Taguri committed Oct 16, 2024
1 parent 3615dcf commit a444b12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/utils/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a444b12

Please sign in to comment.