diff --git a/packages/backend/src/services/note/create.ts b/packages/backend/src/services/note/create.ts index 3d5b308f35..8ba2963d5e 100644 --- a/packages/backend/src/services/note/create.ts +++ b/packages/backend/src/services/note/create.ts @@ -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 => {