3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Add debugging for duplicate audit_log_ids

This commit is contained in:
Dragory 2021-08-21 00:17:29 +03:00
parent a4d22e0e7a
commit ce8618957f
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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,