error log

This commit is contained in:
Erik 2022-05-01 02:33:55 +03:00
parent 6fa63d4445
commit 3f3da9e524
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -422,7 +422,9 @@ class ModerationManager {
await this.client.storageManager.mongodb.infractions.updateOne(
{ id: i.id },
{ _callbacked: true }
).catch((e) => { }); //eslint-disable-line no-empty, no-unused-vars, no-empty-function
).catch((e) => {
this.logger.error(`Error during update of infraction:\n${e.stack || e}`);
});
this.callbacks.delete(i.id);
return true;