don't populate relations in packMany unless we really need to

This commit is contained in:
Hazelnoot 2025-08-11 16:22:16 -04:00
parent 29ed47d326
commit c31283e9d6

View file

@ -803,7 +803,7 @@ export class UserEntityService implements OnModuleInit {
isDetailed && meId ? this.userMemosRepository.findBy({ userId: meId })
.then(memos => new Map(memos.map(memo => [memo.targetUserId, memo.memo]))) : new Map(),
// userRelations
meId
meId && isDetailed
? myFollowingsPromise.then(myFollowings => this.getRelations(meId, _userIds, { myFollowings }))
: new Map(),
// pinNotes