Use save operator rather than raw insert maybe?
This commit is contained in:
parent
a8f879b46f
commit
38216b26bd
@ -468,7 +468,7 @@ router.post(
|
||||
author_id: message.author_id
|
||||
});
|
||||
await Promise.all([
|
||||
Message.insert(message),
|
||||
message.save(),
|
||||
emitEvent({
|
||||
event: "MESSAGE_CREATE",
|
||||
channel_id: msg.channel_id,
|
||||
|
||||
Reference in New Issue
Block a user