mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-27 22:38:30 +09:00
Refactor
This commit is contained in:
parent
e25dea27e7
commit
833c39969b
@ -28,15 +28,15 @@ export default define(meta, async (ps, user) => {
|
|||||||
const [favorite, watching] = await Promise.all([
|
const [favorite, watching] = await Promise.all([
|
||||||
NoteFavorites.count({
|
NoteFavorites.count({
|
||||||
where: {
|
where: {
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
noteId: ps.noteId
|
noteId: ps.noteId
|
||||||
},
|
},
|
||||||
take: 1
|
take: 1
|
||||||
}),
|
}),
|
||||||
NoteWatchings.count({
|
NoteWatchings.count({
|
||||||
where: {
|
where: {
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
noteId: ps.noteId
|
noteId: ps.noteId
|
||||||
},
|
},
|
||||||
take: 1
|
take: 1
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user