fix(backend): fix of 1671575d5d
This commit is contained in:
parent
1671575d5d
commit
f9549e1f1b
2 changed files with 5 additions and 5 deletions
|
|
@ -188,7 +188,7 @@ export class ReactionService {
|
|||
.set({
|
||||
reactions: () => sql,
|
||||
...(note.reactionAndUserPairCache.length < 10 ? {
|
||||
reactionAndUserPairCache: () => `array_append("reactionAndUserPairCache", '${user.id}:${reaction}')`,
|
||||
reactionAndUserPairCache: () => `array_append("reactionAndUserPairCache", '${user.id}/${reaction}')`,
|
||||
} : {}),
|
||||
})
|
||||
.where('id = :id', { id: note.id })
|
||||
|
|
@ -296,7 +296,7 @@ export class ReactionService {
|
|||
await this.notesRepository.createQueryBuilder().update()
|
||||
.set({
|
||||
reactions: () => sql,
|
||||
reactionAndUserPairCache: () => `array_remove("reactionAndUserPairCache", '${user.id}:${exist.reaction}')`,
|
||||
reactionAndUserPairCache: () => `array_remove("reactionAndUserPairCache", '${user.id}/${exist.reaction}')`,
|
||||
})
|
||||
.where('id = :id', { id: note.id })
|
||||
.execute();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue