From 5a3e3529509ffc69b71275ae68b3caa1043e1c6f Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 14 Oct 2024 00:10:52 +0700 Subject: [PATCH] =?UTF-8?q?fix(server):=20typeorm=20(=E0=A9=AD=20=C2=B0?= =?UTF-8?q?=E0=BD=80=C2=B0)=E0=A9=AD=20(#13411)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/utils/database.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/utils/database.ts b/server/src/utils/database.ts index 45fb6c6dae..55e4fcb0e5 100644 --- a/server/src/utils/database.ts +++ b/server/src/utils/database.ts @@ -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) {