Skip to content
Snippets Groups Projects
Commit f2d7cadf authored by jvfpw18's avatar jvfpw18
Browse files

Update req filters in dailyChargeAmount

parent 23a4d025
No related branches found
No related tags found
1 merge request!257V1.14.0
Pipeline #23289 failed
......@@ -344,7 +344,7 @@ rqf.addField({
dailyChargeAmountApp.get('/', rqf.parse(), (req, res, next) => {
var status = 0;
if ('period' in req.filter) {
if (req.filter['period'].length == 1 && (req.filter['period'][0] == '3' || req.filter['period'][0] === 4)) {
if (req.filter['period'].length == 1 && (req.filter['period'][0] == '3' || req.filter['period'][0] === '4')) {
status = 1;
} else if (req.filter['period'].length <= 2 && (req.filter['period'].includes('1') || req.filter['period'].includes('2')) && (!req.filter['period'].includes('3'))) {
status = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment