From 0cb06599fcc1cc5018c0dc1facee6dbc435dc804 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 11 Dec 2024 14:37:34 -0600 Subject: [PATCH] fix(server): fix getByDayOfYear query --- server/src/repositories/asset.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/repositories/asset.repository.ts b/server/src/repositories/asset.repository.ts index b3066a37bc3de..33d1e2457eb85 100644 --- a/server/src/repositories/asset.repository.ts +++ b/server/src/repositories/asset.repository.ts @@ -92,7 +92,7 @@ export class AssetRepository implements IAssetRepository { ) .leftJoinAndSelect('entity.exifInfo', 'exifInfo') .innerJoinAndSelect('entity.files', 'files') - .where('files.type = :type', { type: AssetFileType.THUMBNAIL }) + .andWhere('files.type = :type', { type: AssetFileType.THUMBNAIL }) .andWhere( `EXTRACT(YEAR FROM CURRENT_DATE AT TIME ZONE 'UTC') - EXTRACT(YEAR FROM entity.localDateTime AT TIME ZONE 'UTC') > 0`, )