use await for notes.countBy

This commit is contained in:
Norm 2022-10-17 16:46:42 -04:00
parent aa1e4d0fbc
commit 923c93da12
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -462,7 +462,7 @@ export default async (user: { id: User['id']; username: User['username']; host:
lastNotedAt: new Date(), lastNotedAt: new Date(),
}); });
Notes.countBy({ const count = await Notes.countBy({
userId: user.id, userId: user.id,
channelId: data.channel.id, channelId: data.channel.id,
}); });