From e2e8e8e43136cc8589120347b3fb96798a38526c Mon Sep 17 00:00:00 2001 From: praveenKDass Date: Tue, 9 Jul 2024 16:09:58 +0530 Subject: [PATCH] Fixing program Name listing in Project inapp report --- module/reports/helper.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/reports/helper.js b/module/reports/helper.js index a07f2ec5..c1d4c6b3 100644 --- a/module/reports/helper.js +++ b/module/reports/helper.js @@ -361,12 +361,12 @@ module.exports = class ReportsHelper { } if (userRole != "") { + let regex = userRole.split(","); + regex.push(""); query.userRole = { - $in : [ - "", - ...userRole.split(",") - ] - } + $regex: regex.join("|"), + $options: "i", + }; } let searchQuery = [];