From 60b2d85176050145e99ca27434bc97c8a6a975c3 Mon Sep 17 00:00:00 2001 From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com> Date: Wed, 2 Mar 2022 10:43:50 +0530 Subject: [PATCH] checkresultmaster susee --- app/controllers/master.controller.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/master.controller.js b/app/controllers/master.controller.js index 5fe277e..21cbaf2 100644 --- a/app/controllers/master.controller.js +++ b/app/controllers/master.controller.js @@ -129,7 +129,7 @@ const { sequelize,EntityApplicantMaster,StateMaster,CityMaster,PinMaster,Checkty { try { - const storeData = await sequelize.query('SELECT checktype_checkresult_relation_master.check_type_id , checktype_checkresult_relation_master.check_result_id, due_diligence_checks.check_type AS check_type, check_result_master.value AS check_result FROM checktype_checkresult_relation_master JOIN due_diligence_checks ON checktype_checkresult_relation_master.check_type_id = due_diligence_checks.id JOIN check_result_master ON checktype_checkresult_relation_master.check_result_id = check_result_master.id') + const storeData = await sequelize.query('SELECT checktype_checkresult_relation_master.check_type_id , checktype_checkresult_relation_master.check_result_id, check_type_master.value AS check_type, check_result_master.value AS check_result FROM checktype_checkresult_relation_master JOIN check_type_master ON checktype_checkresult_relation_master.check_type_id = check_type_master.id JOIN check_result_master ON checktype_checkresult_relation_master.check_result_id = check_result_master.id') res.send({'status':200,'message':"success",'data':storeData}); } catch(err) { res.send({'status':404, @@ -139,4 +139,6 @@ const { sequelize,EntityApplicantMaster,StateMaster,CityMaster,PinMaster,Checkty }; - \ No newline at end of file + + + \ No newline at end of file