development #7

Merged
Navy.gif merged 4 commits from development into main 2024-03-26 16:42:28 +01:00
Showing only changes of commit 31a1fbe865 - Show all commits

View File

@ -204,7 +204,7 @@ class ModerationManager implements Initialisable, CallbackClient
const results = await this.#client.mongodb.infractions.find<InfractionJSON>(filter); const results = await this.#client.mongodb.infractions.find<InfractionJSON>(filter);
this.#logger.info(`Filtering ${results.length} infractions for callback.`); this.#logger.info(`Filtering ${results.length} infractions for callback.`);
for (const result of results) for (const result of results)
this.handleTimedInfraction(result); await this.handleTimedInfraction(result);
const ids = results.map(result => result._id); const ids = results.map(result => result._id);
await this.#client.mongodb.infractions.removeProperty({ _id: { $in: ids } }, [ '_callbacked' ]); await this.#client.mongodb.infractions.removeProperty({ _id: { $in: ids } }, [ '_callbacked' ]);
this.#ready = true; this.#ready = true;