Use save operator rather than raw insert maybe?

This commit is contained in:
Rory& 2025-10-19 09:16:46 +02:00
parent a8f879b46f
commit 38216b26bd

View File

@ -468,7 +468,7 @@ router.post(
author_id: message.author_id author_id: message.author_id
}); });
await Promise.all([ await Promise.all([
Message.insert(message), message.save(),
emitEvent({ emitEvent({
event: "MESSAGE_CREATE", event: "MESSAGE_CREATE",
channel_id: msg.channel_id, channel_id: msg.channel_id,