From 51e48e632a1798bb928259cbc17186c7e3068a2d Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Sat, 24 May 2025 16:02:46 +0530 Subject: [PATCH] modified url for delete and update contact tag --- src/repositories/MastersRepository.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repositories/MastersRepository.jsx b/src/repositories/MastersRepository.jsx index 7a4ab1f0..30af194b 100644 --- a/src/repositories/MastersRepository.jsx +++ b/src/repositories/MastersRepository.jsx @@ -42,7 +42,7 @@ export const MasterRespository = { "Application Role":(id)=>api.delete(`/api/roles/${id}`), "Work Category": ( id ) => api.delete( `api/master/work-category/${ id }` ), "Contact Category": ( id ) => api.delete( `/api/master/contact-category` ), - "Conatct Tag" :(id)=>api.delete("/api/master/contact-tag"), + "Contact Tag" :(id)=>api.delete(`/api/master/contact-tag/${id}`), getWorkCategory:() => api.get(`/api/master/work-categories`), createWorkCategory: (data) => api.post(`/api/master/work-category`,data), @@ -54,6 +54,6 @@ export const MasterRespository = { getContactTag: () => api.get( `/api/master/contact-tags` ), 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/edit/${ id }`, data ) } \ No newline at end of file