3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

MessageSaver: use a queue, add more logging for duplicate IDs

This commit is contained in:
Dragory 2021-08-20 21:00:53 +03:00
parent ebe224885e
commit 7054412640
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
4 changed files with 37 additions and 6 deletions

View file

@ -213,7 +213,7 @@ export class GuildSavedMessages extends BaseGuildRepository {
await this.messages.insert(data);
} catch (e) {
if (e?.code === "ER_DUP_ENTRY") {
console.warn(`Tried to insert duplicate message ID: ${data.id}`);
console.trace(`Tried to insert duplicate message ID: ${data.id}`);
return;
}