don't populate relations in packMany unless we really need to
This commit is contained in:
parent
29ed47d326
commit
c31283e9d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue