catch polls that are expiring exactly in the current instant
This commit is contained in:
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user