From 31a1fbe865811710e1d02f87598bc53f6f66c087 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 26 Mar 2024 16:22:10 +0200 Subject: [PATCH] Await handleTimedInfraction --- src/client/components/managers/ModerationManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/components/managers/ModerationManager.ts b/src/client/components/managers/ModerationManager.ts index bb1f12a..44bfe8a 100644 --- a/src/client/components/managers/ModerationManager.ts +++ b/src/client/components/managers/ModerationManager.ts @@ -204,7 +204,7 @@ class ModerationManager implements Initialisable, CallbackClient const results = await this.#client.mongodb.infractions.find(filter); this.#logger.info(`Filtering ${results.length} infractions for callback.`); for (const result of results) - this.handleTimedInfraction(result); + await this.handleTimedInfraction(result); const ids = results.map(result => result._id); await this.#client.mongodb.infractions.removeProperty({ _id: { $in: ids } }, [ '_callbacked' ]); this.#ready = true;