pramod_Task#294 #112

Merged
pramod.mahajan merged 2 commits from pramod_Task#294 into Feature_Directory 2025-05-15 17:33:17 +00:00
2 changed files with 6 additions and 2 deletions

View File

@ -52,7 +52,11 @@ const useMaster = (isMa) => {
response = response.data response = response.data
break; break;
case "Contact Category": case "Contact Category":
response = await MasterRespository.getContactCategory() response = await MasterRespository.getContactCategory();
response = response.data
break;
case "Contact Tag":
response = await MasterRespository.getContactTag();
response = response.data response = response.data
break; break;
case "Status": case "Status":

View File

@ -52,7 +52,7 @@ export const MasterRespository = {
createContactCategory: (data ) => api.post( `/api/master/contact-category`, data ), createContactCategory: (data ) => api.post( `/api/master/contact-category`, data ),
updateContactCategory: ( id, data ) => api.post( `/api/master/contact-category/${ id }`, data ), updateContactCategory: ( id, data ) => api.post( `/api/master/contact-category/${ id }`, data ),
getContactTag: () => api.get( `/api/master/contact-tag` ), getContactTag: () => api.get( `/api/master/contact-tags` ),
createContactTag: (data ) => api.post( `/api/master/contact-tag`, data ), createContactTag: (data ) => api.post( `/api/master/contact-tag`, data ),
updateContactTag: ( id, data ) => api.post( `/api/master/contact-tag/${ id }`, data ) updateContactTag: ( id, data ) => api.post( `/api/master/contact-tag/${ id }`, data )