3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

Add debugging for duplicate audit_log_ids

This commit is contained in:
Dragory 2021-08-21 00:17:29 +03:00
parent 2b1553dadf
commit 192673d983

View file

@ -126,7 +126,7 @@ export class GuildCases extends BaseGuildRepository {
.catch(err => {
if (err?.code === "ER_DUP_ENTRY") {
if (data.audit_log_id) {
console.warn(`Tried to insert case with duplicate audit_log_id`);
console.trace(`Tried to insert case with duplicate audit_log_id`);
return this.createInternal({
...data,
audit_log_id: undefined,