Skip to content

Commit

Permalink
Add back question filter
Browse files Browse the repository at this point in the history
  • Loading branch information
aks30 authored Dec 27, 2022
1 parent a660b02 commit 5cfe626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5cfe626

Please sign in to comment.