summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-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 433d94684..476232983 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