Skip to content

Commit

Permalink
IG-767 added check for application status "approved with conditions"
Browse files Browse the repository at this point in the history
  • Loading branch information
CiaraWardPA committed Nov 9, 2020
1 parent db516f8 commit 8a61ef9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/resources/stats/kpis.router.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ router.get('', async (req, res) => {
selectedMonthEnd.setDate(0);
selectedMonthEnd.setHours(23,59,59,999);

console.log(`selectedMonthStart - ${selectedMonthStart}`)
console.log(`selectedMonthEnd - ${selectedMonthEnd}`)

switch (req.query.kpi) {
case 'technicalmetadata':
var totalDatasetsQuery = [
Expand Down Expand Up @@ -124,7 +121,8 @@ router.get('', async (req, res) => {
$or: [
{"applicationStatus":"submitted"},
{"applicationStatus":"approved"},
{"applicationStatus":"rejected"}
{"applicationStatus":"rejected"},
{"applicationStatus":"approved with conditions"}
]
}
]
Expand Down Expand Up @@ -344,7 +342,9 @@ const getDarIds = async(req, selectedMonthStart, selectedMonthEnd) => {
$or: [
{ applicationStatus: "submitted" },
{ applicationStatus: "approved" },
{ applicationStatus: "rejected" }
{ applicationStatus: "rejected" },
{applicationStatus: "approved with conditions" }

]
}
]
Expand Down

0 comments on commit 8a61ef9

Please sign in to comment.