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

Loading…
Cancel
Save