Skip to content
Snippets Groups Projects
Commit 833c3996 authored by syuilo's avatar syuilo
Browse files

Refactor

parent e25dea27
No related branches found
Tags 10.87.4
No related merge requests found
......@@ -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
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment