aboutsummaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-01 22:19:41 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-01 22:19:41 -0400
commit560ed31860a420dcc43571d2e12dd2f51bcee7a8 (patch)
tree855e0cb50c550bbff63ab675e1102b7608573668 /src/tasks
parent855aa36c46e250fd3063eb200d784903a8c388d3 (diff)
downloadtanzanite-560ed31860a420dcc43571d2e12dd2f51bcee7a8.tar.gz
tanzanite-560ed31860a420dcc43571d2e12dd2f51bcee7a8.tar.bz2
tanzanite-560ed31860a420dcc43571d2e12dd2f51bcee7a8.zip
cleanup
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/removeExpiredPunishements.ts10
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
+ }
}
});