Browse Source

Refactoring

pull/5910/head
Thomas Kaul 2 months ago
parent
commit
0125b4f400
  1. 16
      apps/api/src/app/admin/admin.service.ts

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

@ -530,7 +530,15 @@ export class AdminService {
}): Promise<AdminUsersResponse> { }): Promise<AdminUsersResponse> {
const [count, users] = await Promise.all([ const [count, users] = await Promise.all([
this.countUsersWithAnalytics(), this.countUsersWithAnalytics(),
this.getUsersWithAnalytics({ skip, take }) this.getUsersWithAnalytics({
skip,
take,
where: {
NOT: {
analytics: null
}
}
})
]); ]);
return { count, users }; return { count, users };
@ -829,11 +837,7 @@ export class AdminService {
private async getUsersWithAnalytics({ private async getUsersWithAnalytics({
skip, skip,
take, take,
where = { where
NOT: {
analytics: null
}
}
}: { }: {
skip?: number; skip?: number;
take?: number; take?: number;

Loading…
Cancel
Save