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