From 8606a10f053114a4d7cff035b4d86bd029168765 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 13 Oct 2024 23:53:02 +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?= 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 45fb6c6daef21..55e4fcb0e555b 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) {