forked from woem.men/forkey
fixed bug
This commit is contained in:
parent
1224033142
commit
920a1cd8ee
1 changed files with 4 additions and 2 deletions
|
@ -614,8 +614,8 @@ export class UserEntityService implements OnModuleInit {
|
|||
...(opts.includeSecrets ? {
|
||||
email: profile!.email,
|
||||
emailVerified: profile!.emailVerified,
|
||||
approved: user.approved,
|
||||
signupReason: user.signupReason,
|
||||
approved: user!.approved,
|
||||
signupReason: user!.signupReason,
|
||||
securityKeysList: profile!.twoFactorEnabled
|
||||
? this.userSecurityKeysRepository.find({
|
||||
where: {
|
||||
|
@ -707,5 +707,7 @@ export class UserEntityService implements OnModuleInit {
|
|||
}
|
||||
|
||||
return (await Promise.allSettled(_users.map(u => this.pack(u, me, { ...options, userProfile: profilesMap?.get(u.id), userRelations: userRelations, userMemos: userMemos, pinNotes: pinNotes }))))
|
||||
.filter(result => result.status === 'fulfilled')
|
||||
.map(result => (result as PromiseFulfilledResult<Packed<S>>).value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue