summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2025-11-19 11:08:56 -0600
committerMathMan05 <mathmanrm@gmail.com>2025-11-19 11:08:56 -0600
commit76263bca68be2b5f08d28bb07b845a2a41870231 (patch)
tree5ed0ec3060de5f889c5e3845358f504c40f5afd8
parentfix mentions issues (diff)
downloadserver-ts-76263bca68be2b5f08d28bb07b845a2a41870231.tar.xz
add missing awaits
-rw-r--r--src/api/util/handlers/Message.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts

index 433d9468..47623298 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts
@@ -351,8 +351,8 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> { } const repository = ReadState.getRepository(); const condition = { channel_id: channel.id }; - repository.update({ ...condition, mention_count: IsNull() }, { mention_count: 0 }); - repository.increment(condition, "mention_count", 1); + await repository.update({ ...condition, mention_count: IsNull() }, { mention_count: 0 }); + await repository.increment(condition, "mention_count", 1); } else { const users = new Set<string>([ ...(message.mention_roles.length