From 280cffc0ffa81ad3210be52dc6ae239d77a4b2f3 Mon Sep 17 00:00:00 2001 From: Zukqurnain Date: Fri, 13 May 2022 16:19:36 +0500 Subject: [PATCH] refactor --- backend/controllers/attendance_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controllers/attendance_controller.js b/backend/controllers/attendance_controller.js index 531ce9d..4a500fe 100644 --- a/backend/controllers/attendance_controller.js +++ b/backend/controllers/attendance_controller.js @@ -166,7 +166,7 @@ module.exports.report = (req, res) => { ] }, { '$eq': [ - '$ApprovedDetails.ActionTakenOn', true + '$Status', 'Approved' ] } ]