mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-23 01:27:14 +02:00
missing parenthesis
This commit is contained in:
parent
63fe63cac4
commit
8019d0a8c1
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user