diff --git a/packages/backend/src/core/entities/UserEntityService.ts b/packages/backend/src/core/entities/UserEntityService.ts index 9d9c2eaec5..3cdd66b53b 100644 --- a/packages/backend/src/core/entities/UserEntityService.ts +++ b/packages/backend/src/core/entities/UserEntityService.ts @@ -404,7 +404,6 @@ export class UserEntityService implements OnModuleInit { userRelations?: Map, userMemos?: Map, pinNotes?: Map, - todayGetPoints?: number, }, ): Promise> { 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 ? { diff --git a/packages/backend/src/server/api/endpoints/i.ts b/packages/backend/src/server/api/endpoints/i.ts index 399aa385ef..08bf8b70c2 100644 --- a/packages/backend/src/server/api/endpoints/i.ts +++ b/packages/backend/src/server/api/endpoints/i.ts @@ -83,7 +83,6 @@ export default class extends Endpoint { // eslint- schema: 'MeDetailed', includeSecrets: isSecure, userProfile, - ...(todayGetPoints && { todayGetPoints }), }); }); }