1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

missing parenthesis

This commit is contained in:
gras 2024-05-11 16:41:37 +02:00
parent 63fe63cac4
commit 8019d0a8c1

View File

@ -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(