mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-26 15:17:30 +00:00
Use save operator rather than raw insert maybe?
This commit is contained in:
@@ -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