From 76263bca68be2b5f08d28bb07b845a2a41870231 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 19 Nov 2025 11:08:56 -0600 Subject: [PATCH] add missing awaits --- src/api/util/handlers/Message.ts | 4 ++-- 1 file 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 { } 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([ ...(message.mention_roles.length