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(
|
q.where(
|
||||||
`(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) < :to${queryId}`,
|
`(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) < :to${queryId}`,
|
||||||
textParam
|
textParam
|
||||||
).andWhere(`media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) >= :from${queryId}`,
|
).andWhere(`(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) >= :from${queryId}`,
|
||||||
textParam);
|
textParam);
|
||||||
} else {
|
} else {
|
||||||
q.where(
|
q.where(
|
||||||
@ -854,8 +854,6 @@ export class SearchManager {
|
|||||||
|
|
||||||
|
|
||||||
if (Config.Database.type === DatabaseType.sqlite) {
|
if (Config.Database.type === DatabaseType.sqlite) {
|
||||||
//(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000))
|
|
||||||
|
|
||||||
if (tq.daysLength == 0) {
|
if (tq.daysLength == 0) {
|
||||||
if (Config.Gallery.ignoreTimestampOffset === true) {
|
if (Config.Gallery.ignoreTimestampOffset === true) {
|
||||||
q.where(
|
q.where(
|
||||||
|
Loading…
Reference in New Issue
Block a user