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
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user