mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 13:04:34 +00:00
catch polls that are expiring exactly in the current instant
This commit is contained in:
parent
f01dc57ec9
commit
63950fea31
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
|
|
||||||
if (ps.expired) {
|
if (ps.expired) {
|
||||||
query.andWhere('poll.expiresAt IS NOT NULL');
|
query.andWhere('poll.expiresAt IS NOT NULL');
|
||||||
query.andWhere('poll.expiresAt < :expiresMax', {
|
query.andWhere('poll.expiresAt <= :expiresMax', {
|
||||||
expiresMax: new Date(),
|
expiresMax: new Date(),
|
||||||
});
|
});
|
||||||
query.andWhere('poll.expiresAt >= :expiresMin', {
|
query.andWhere('poll.expiresAt >= :expiresMin', {
|
||||||
|
|
Loading…
Add table
Reference in a new issue