From ec3e8ecc5c3f28d494b0c6f38ae8bbfc707330b2 Mon Sep 17 00:00:00 2001 From: sriramv Date: Thu, 19 May 2022 10:18:06 +0530 Subject: [PATCH] timeDelay:GWM --- app/controllers/financial.controller.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controllers/financial.controller.js b/app/controllers/financial.controller.js index 5d5bffc..0dc6c65 100644 --- a/app/controllers/financial.controller.js +++ b/app/controllers/financial.controller.js @@ -63,10 +63,8 @@ exports.MenuList = async (req, res) => { const losid = req.query.losid; var EntityInsert = new Promise((resolve, reject) => { - if(req.query.redirection_api_call == 0) + if(req.query.redirection_api_call == 1) { - resolve(); - } //Redirection api call with losid redirectionApi = ApiCallHelper.redirectionApiCall(losid); redirectionApi.then(function(redirectionApiData){ @@ -180,7 +178,8 @@ exports.MenuList = async (req, res) => { }); // end of Redirection api data foreach } // end of redirectionApiData else condition - }) // end of Redirection api call + }) // end of Redirection api call + } else { resolve(); } }); // end of promise