Browse Source

refactor: minor

pull/4058/head
Qurban Ahmad 9 months ago
parent
commit
526849b897
  1. 4
      apps/api/src/app/admin/admin.service.ts

4
apps/api/src/app/admin/admin.service.ts

@ -438,7 +438,7 @@ export class AdminService {
}): Promise<AdminUsers> { }): Promise<AdminUsers> {
return { return {
users: await this.getUsersWithAnalytics({ skip, take }), users: await this.getUsersWithAnalytics({ skip, take }),
count: await this.countWithAnalytics() count: await this.countUsersWithAnalytics()
}; };
} }
@ -649,7 +649,7 @@ export class AdminService {
return { marketData, count: marketData.length }; return { marketData, count: marketData.length };
} }
private async countWithAnalytics(): Promise<number> { private async countUsersWithAnalytics(): Promise<number> {
let where: Prisma.UserWhereInput; let where: Prisma.UserWhereInput;
if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) {

Loading…
Cancel
Save