Skip to content

Commit

Permalink
attend controller changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharjeel007305 committed May 16, 2022
1 parent 7035020 commit 8b40078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/controllers/attendance_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ module.exports.report = (req, res) => {
'$push': '$$ROOT'
},

'ManualAttendance': {
'TotalHolidays': {
'$sum': {
$cond: [{ $eq: ['$WorkingHours', true] }, 1, 0]
$cond: [{ $eq: ['$TransactionType', "Holiday"] }, 1, 0]
}
},
'Leave': {
Expand Down

0 comments on commit 8b40078

Please sign in to comment.