add missing awaits
This commit is contained in:
parent
d42519e330
commit
76263bca68
@ -351,8 +351,8 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
|
|||||||
}
|
}
|
||||||
const repository = ReadState.getRepository();
|
const repository = ReadState.getRepository();
|
||||||
const condition = { channel_id: channel.id };
|
const condition = { channel_id: channel.id };
|
||||||
repository.update({ ...condition, mention_count: IsNull() }, { mention_count: 0 });
|
await repository.update({ ...condition, mention_count: IsNull() }, { mention_count: 0 });
|
||||||
repository.increment(condition, "mention_count", 1);
|
await repository.increment(condition, "mention_count", 1);
|
||||||
} else {
|
} else {
|
||||||
const users = new Set<string>([
|
const users = new Set<string>([
|
||||||
...(message.mention_roles.length
|
...(message.mention_roles.length
|
||||||
|
|||||||
Reference in New Issue
Block a user