mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 22:03:08 +02:00
Refactor
This commit is contained in:
parent
e25dea27e7
commit
833c39969b
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue