update
This commit is contained in:
parent
6a07fa78dd
commit
ed14ddad0c
2 changed files with 1 additions and 6 deletions
|
|
@ -404,7 +404,6 @@ export class UserEntityService implements OnModuleInit {
|
|||
userRelations?: Map<MiUser['id'], UserRelation>,
|
||||
userMemos?: Map<MiUser['id'], string | null>,
|
||||
pinNotes?: Map<MiUser['id'], MiUserNotePining[]>,
|
||||
todayGetPoints?: number,
|
||||
},
|
||||
): Promise<Packed<S>> {
|
||||
const opts = Object.assign({
|
||||
|
|
@ -508,7 +507,7 @@ export class UserEntityService implements OnModuleInit {
|
|||
iconUrl: r.iconUrl,
|
||||
displayOrder: r.displayOrder,
|
||||
}))) : undefined,
|
||||
...(user.host == null ? { getPoints: profile!.getPoints } : {}),
|
||||
...(user.host == null ? { getPoints: user.getPoints } : {}),
|
||||
...(isDetailed ? {
|
||||
url: profile!.url,
|
||||
uri: user.uri,
|
||||
|
|
@ -603,9 +602,6 @@ export class UserEntityService implements OnModuleInit {
|
|||
achievements: profile!.achievements,
|
||||
loggedInDays: profile!.loggedInDates.length,
|
||||
policies: this.roleService.getUserPolicies(user.id),
|
||||
...(opts.todayGetPoints ? {
|
||||
todayGetPoints: opts.todayGetPoints,
|
||||
} : {}),
|
||||
} : {}),
|
||||
|
||||
...(opts.includeSecrets ? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue