🐛 fix: userBlockedCache is invalid

This commit is contained in:
Lhc_fl 2025-09-29 17:14:23 +08:00
parent 018b3d3dee
commit e6fd69f634
No known key found for this signature in database
GPG key ID: 3A10435B21EDC6AA

View file

@ -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[] }>()