mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 15:40:57 -07:00
use await for notes.countBy
This commit is contained in:
parent
60cfe0ed4e
commit
288f4a01eb
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ export default async (user: { id: User['id']; username: User['username']; host:
|
|||
lastNotedAt: new Date(),
|
||||
});
|
||||
|
||||
Notes.countBy({
|
||||
const count = await Notes.countBy({
|
||||
userId: user.id,
|
||||
channelId: data.channel.id,
|
||||
}).then(count => {
|
||||
|
|
Loading…
Reference in a new issue