mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
fix: use entity.save() instead of insert (needed for caching)
This commit is contained in:
1 parent
52f8508b38
commit
7b00e99053
3 files changed
+6
-6
No files matched your search
@@ -274,7 +274,7 @@ export async function sendMessage(opts: MessageOptions) {
|
||||
const message = await handleMessage({ ...opts, timestamp: new Date() });
|
||||
|
||||
await Promise.all([
|
||||
Message.insert(message),
|
||||
message.save(),
|
||||
emitEvent({
|
||||
event: "MESSAGE_CREATE",
|
||||
channel_id: opts.channel_id,
|
||||
|
||||
Reference in new issue
Block a user