1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-27 22:38:39 +09:00
This commit is contained in:
syuilo 2020-03-23 19:42:26 +09:00
parent e25dea27e7
commit 833c39969b

View File

@ -28,15 +28,15 @@ export default define(meta, async (ps, user) => {
const [favorite, watching] = await Promise.all([
NoteFavorites.count({
where: {
userId: user.id,
noteId: ps.noteId
userId: user.id,
noteId: ps.noteId
},
take: 1
}),
NoteWatchings.count({
where: {
userId: user.id,
noteId: ps.noteId
userId: user.id,
noteId: ps.noteId
},
take: 1
})