mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Nice catch by the linter
This commit is contained in:
parent
a44b7f8d15
commit
63fe63cac4
@ -811,9 +811,14 @@ 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
|
||||||
).orWhere(`media.metadata.creationDate < :from${queryId}`,
|
).orWhere(`(media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) < :from${queryId}`,
|
||||||
textParam);
|
textParam);
|
||||||
} else {
|
} else {
|
||||||
|
q.where(
|
||||||
|
`media.metadata.creationDate >= :to${queryId}`,
|
||||||
|
textParam
|
||||||
|
).orWhere(`media.metadata.creationDate < :from${queryId}`,
|
||||||
|
textParam);
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -821,10 +826,14 @@ 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 >= :from${queryId}`,
|
).andWhere(`media.metadata.creationDate + (media.metadata.creationDateOffset * 60000)) >= :from${queryId}`,
|
||||||
textParam);
|
textParam);
|
||||||
} else {
|
} else {
|
||||||
|
q.where(
|
||||||
|
`media.metadata.creationDate < :to${queryId}`,
|
||||||
|
textParam
|
||||||
|
).andWhere(`media.metadata.creationDate >= :from${queryId}`,
|
||||||
|
textParam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user