Skip to content

Commit

Permalink
attendance controller changes new route
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharjeel007305 committed May 31, 2022
1 parent e5f76a9 commit 003a0fc
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 @@ -785,7 +785,7 @@ module.exports.GetReportDailyAtt = async (req, res) => {
})
}
module.exports.GetLastReport = async (req, res) => {
const aggr = [
const reportagg = [
{
'$match': {
'UserID': req.body.UserID,
Expand Down Expand Up @@ -840,7 +840,7 @@ module.exports.GetLastReport = async (req, res) => {
}
}
]
await attendance_repo.aggregate(GetLastReport)
await attendance_repo.aggregate(reportagg)

.then(lastReport => {
console.log(lastReport)
Expand Down

0 comments on commit 003a0fc

Please sign in to comment.