🐛 fix: userBlockedCache is invalid
This commit is contained in:
parent
018b3d3dee
commit
e6fd69f634
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ export class CacheService implements OnApplicationShutdown {
|
|||
bulkFetcher: blockeeIds => this.blockingsRepository
|
||||
.createQueryBuilder('blocking')
|
||||
.select('"blocking"."blockeeId"', 'blockeeId')
|
||||
.addSelect('array_agg("blocking"."blockeeId")', 'blockeeIds')
|
||||
.addSelect('array_agg("blocking"."blockerId")', 'blockerIds')
|
||||
.where({ blockeeId: In(blockeeIds) })
|
||||
.groupBy('blocking.blockeeId')
|
||||
.getRawMany<{ blockeeId: string, blockerIds: string[] }>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue