diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-01 22:19:41 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-01 22:19:41 -0400 |
| commit | 560ed31860a420dcc43571d2e12dd2f51bcee7a8 (patch) | |
| tree | 855e0cb50c550bbff63ab675e1102b7608573668 /src/tasks | |
| parent | 855aa36c46e250fd3063eb200d784903a8c388d3 (diff) | |
| download | tanzanite-560ed31860a420dcc43571d2e12dd2f51bcee7a8.tar.gz tanzanite-560ed31860a420dcc43571d2e12dd2f51bcee7a8.tar.bz2 tanzanite-560ed31860a420dcc43571d2e12dd2f51bcee7a8.zip | |
cleanup
Diffstat (limited to 'src/tasks')
| -rw-r--r-- | src/tasks/removeExpiredPunishements.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/tasks/removeExpiredPunishements.ts b/src/tasks/removeExpiredPunishements.ts index 69130ee..49267f5 100644 --- a/src/tasks/removeExpiredPunishements.ts +++ b/src/tasks/removeExpiredPunishements.ts @@ -12,13 +12,9 @@ export default class RemoveExpiredPunishmentsTask extends BushTask { public override async exec(): Promise<void> { const expiredEntries = await ActivePunishment.findAll({ where: { - [Op.and]: [ - { - expires: { - [Op.lt]: new Date() // Find all rows with an expiry date before now - } - } - ] + expires: { + [Op.lt]: new Date() // Find all rows with an expiry date before now + } } }); |
