From 5cfe626986f5f4fe6e6a8cdea80307cc266f4fc1 Mon Sep 17 00:00:00 2001 From: Akash Shah Date: Tue, 27 Dec 2022 12:19:23 +0530 Subject: [PATCH] Add back question filter --- helper/reports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/reports.js b/helper/reports.js index 5390388..9dd8811 100644 --- a/helper/reports.js +++ b/helper/reports.js @@ -63,7 +63,7 @@ exports.instaceObservationReport = async function (req, res) { if (req.body.scores == true && req.body.criteriaWise == false && criteriaLevelReport == false) { bodyParam.dimensions.push("questionName", "questionAnswer", "questionExternalId", "questionResponseType", "minScore", "maxScore", "totalScore", "scoreAchieved", "observationName", "completedDate"); - // bodyParam.filter.fields.push({"type":"or","fields":[{"type":"selector","dimension":"questionResponseType","value":"radio"},{"type":"selector","dimension":"questionResponseType","value":"multiselect"},{"type":"selector","dimension":"questionResponseType","value":"slider"}]}) + bodyParam.filter.fields.push({"type":"or","fields":[{"type":"selector","dimension":"questionResponseType","value":"radio"},{"type":"selector","dimension":"questionResponseType","value":"multiselect"},{"type":"selector","dimension":"questionResponseType","value":"slider"}]}) } if (req.body.scores == false && req.body.criteriaWise == true) {