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