Refactor
This commit is contained in:
parent
85959a3b9b
commit
0ede390fef
17 changed files with 17 additions and 17 deletions
|
@ -82,7 +82,7 @@ export class UserRepository extends Repository<User> {
|
|||
|
||||
const relation = meId && (meId !== user.id) && opts.detail ? await this.getRelation(meId, user.id) : null;
|
||||
const pins = opts.detail ? await UserNotePinings.find({ userId: user.id }) : [];
|
||||
const profile = opts.detail ? await UserProfiles.findOne({ userId: user.id }).then(ensure) : null;
|
||||
const profile = opts.detail ? await UserProfiles.findOne(user.id).then(ensure) : null;
|
||||
|
||||
const falsy = opts.detail ? false : undefined;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue