use await for notes.countBy

This commit is contained in:
Francis Dinh 2022-10-17 16:46:42 -04:00 committed by ThatOneCalculator
parent 97b6f45993
commit b331d1b0eb
1 changed files with 1 additions and 1 deletions

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,
}).then(count => { }).then(count => {