From bceaf55fe92d854bc61dd5c4be3529b83cd9bb6c Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Fri, 30 Sep 2022 10:10:34 +0530 Subject: [PATCH] changes in select api : suseendhiran --- app/controllers/creditpd.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/creditpd.controller.js b/app/controllers/creditpd.controller.js index bf43b5f..bf72eb8 100644 --- a/app/controllers/creditpd.controller.js +++ b/app/controllers/creditpd.controller.js @@ -345,7 +345,7 @@ exports.GetCreditPdData = async (req, res) => ] }) .then((data)=>{ - if (condition) + if (data.length > 0) { res.send({'status':200,'message':"success",'data':data}); }