mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
inc/dec score
This commit is contained in:
parent
dc2edb78b9
commit
50b3542074
2 changed files with 4 additions and 2 deletions
|
@ -49,7 +49,8 @@ export default async (user: User, note: Note, reaction?: string) => {
|
|||
})
|
||||
.where('id = :id', { id: note.id })
|
||||
.execute();
|
||||
// v11 inc score
|
||||
|
||||
Notes.increment({ id: note.id }, 'score', 1);
|
||||
|
||||
perUserReactionsChart.update(user, note);
|
||||
|
||||
|
|
|
@ -30,7 +30,8 @@ export default async (user: User, note: Note) => {
|
|||
})
|
||||
.where('id = :id', { id: note.id })
|
||||
.execute();
|
||||
// v11 dec score
|
||||
|
||||
Notes.decrement({ id: note.id }, 'score', 1);
|
||||
|
||||
publishNoteStream(note.id, 'unreacted', {
|
||||
reaction: exist.reaction,
|
||||
|
|
Loading…
Reference in a new issue