From 8019d0a8c167d0d0fa6d1e63b40a89355860bc12 Mon Sep 17 00:00:00 2001 From: gras Date: Sat, 11 May 2024 16:41:37 +0200 Subject: [PATCH] missing parenthesis --- src/backend/model/database/SearchManager.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/model/database/SearchManager.ts b/src/backend/model/database/SearchManager.ts index d25d98d1..0099bf11 100644 --- a/src/backend/model/database/SearchManager.ts +++ b/src/backend/model/database/SearchManager.ts @@ -826,7 +826,7 @@ export class SearchManager { q.where( `(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) < :to${queryId}`, textParam - ).andWhere(`media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) >= :from${queryId}`, + ).andWhere(`(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) >= :from${queryId}`, textParam); } else { q.where( @@ -854,8 +854,6 @@ export class SearchManager { if (Config.Database.type === DatabaseType.sqlite) { - //(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) - if (tq.daysLength == 0) { if (Config.Gallery.ignoreTimestampOffset === true) { q.where(