diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-03-31 15:26:15 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-03-31 15:26:15 +1100 |
commit | 698ad90d3e82a15b85ceb021ad5667109ac0bcdb (patch) | |
tree | 7b79fc6d65e79af82b11d89cb1a5502a9f7bff08 /src/api/util/handlers | |
parent | fix: disable cache if multi threaded (diff) | |
download | server-698ad90d3e82a15b85ceb021ad5667109ac0bcdb.tar.xz |
Revert "Merge pull request #1008 from spacebarchat/dev/samuel"
This reverts commit 69ea71aa9e0bd2e5a98904a66fba0ad3745707cb, reversing changes made to 8b2faf0b18336e5dff1eeff4e849bcfd96b09e88.
Diffstat (limited to 'src/api/util/handlers')
-rw-r--r-- | src/api/util/handlers/Message.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 8818904e..65dbcdfe 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -274,7 +274,7 @@ export async function sendMessage(opts: MessageOptions) { const message = await handleMessage({ ...opts, timestamp: new Date() }); await Promise.all([ - message.save(), + Message.insert(message), emitEvent({ event: "MESSAGE_CREATE", channel_id: opts.channel_id, |