mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-12 05:38:10 +09:00
Refactor
This commit is contained in:
parent
0579b0c182
commit
0df9d316f9
@ -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 New Issue
Block a user