This commit is contained in:
Erik 2022-07-21 01:11:09 +03:00
parent 07c0e8016d
commit 7b34611828
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -143,7 +143,7 @@ class Infraction {
if(this._mongoId) filter._id = this._mongoId; if(this._mongoId) filter._id = this._mongoId;
return this.client.storageManager.mongodb.infractions.updateOne(filter, this.json) return this.client.storageManager.mongodb.infractions.updateOne(filter, this.json)
.catch((error) => { .catch((error) => {
this.client.logger.error(`There was an issue saving infraction data to the database.\n${error.stack || error}`); this.client.logger.error(`There was an issue saving infraction data to the database.\n${error.stack || error}\nInfraction data:\n${this.json}`);
}); });
} }