diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-15 19:21:32 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-15 19:21:32 -0500 |
commit | 9a2002a1368ba9ae53ef7419a87213f8efd142ee (patch) | |
tree | 6cbf63a70bf15e390a896cbce18a1f9ff26dbf2c /src/tasks/handleReminders.ts | |
parent | 8e35f109d4b3fc1779e2cd6c3aba5a4d4ee1da85 (diff) | |
download | tanzanite-9a2002a1368ba9ae53ef7419a87213f8efd142ee.tar.gz tanzanite-9a2002a1368ba9ae53ef7419a87213f8efd142ee.tar.bz2 tanzanite-9a2002a1368ba9ae53ef7419a87213f8efd142ee.zip |
make expired punishments be removed at the exact time it expires
Diffstat (limited to 'src/tasks/handleReminders.ts')
-rw-r--r-- | src/tasks/handleReminders.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tasks/handleReminders.ts b/src/tasks/handleReminders.ts index 935a08c..d1af480 100644 --- a/src/tasks/handleReminders.ts +++ b/src/tasks/handleReminders.ts @@ -13,7 +13,7 @@ export default class HandlerRemindersTask extends BushTask { const expiredEntries = await Reminder.findAll({ where: { expires: { - [Op.lt]: new Date(Date.now() + 30_000) // Find all rows with an expiry date before 10 seconds from now + [Op.lt]: new Date(Date.now() + 30_000) // Find all rows with an expiry date before 30 seconds from now }, notified: false } |