Skip to content

Commit

Permalink
Attendance Controller Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharjeel007305 committed May 13, 2022
1 parent fa40186 commit 1c1953e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/controllers/attendance_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ module.exports.report = (req, res) => {
'Leave': {
'$sum': {

$cond: [{ $eq: ['$TransactionType', "Leave"] }, 1, 0]
$cond: [{ $eq: ['$TransactionType', "Leave"] }, 1, 0],

$cond: [{ $eq: ['$TransactionType', "Leave",'$ApprovedDetails', true
] }, 1, 0]
Expand Down

0 comments on commit 1c1953e

Please sign in to comment.