From 5bfaa7f733c243b71bb8665a9689bf40e5a6f143 Mon Sep 17 00:00:00 2001 From: adriano Date: Mon, 29 Jan 2024 14:17:42 -0300 Subject: [PATCH] fix: Resolve duplicated display of users on online/offline dashboard --- backend/src/controllers/ReportController.ts | 2 +- .../UserServices/ListUserParamiterService.ts | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/backend/src/controllers/ReportController.ts b/backend/src/controllers/ReportController.ts index 10580be..f2c042f 100644 --- a/backend/src/controllers/ReportController.ts +++ b/backend/src/controllers/ReportController.ts @@ -66,7 +66,7 @@ export const reportUserService = async (req: Request, res: Response): Promise; raw?: boolean; - userIds?: string | number + userIds?: string | number; } -const ListUser = async ({ profile, userId, raw, userIds }: Request): Promise => { +const ListUser = async ({ profile, userId, raw, userIds, profiles }: Request): Promise => { let where_clause = {}; if (userId && profile) { @@ -29,6 +31,10 @@ const ListUser = async ({ profile, userId, raw, userIds }: Request): Promise