fix: API 경로 수정
This commit is contained in:
@@ -225,7 +225,7 @@ export const htdflFacActionsExport: (set: any) => htdflFacSActions = (
|
||||
// 온배수시설을 삭제한다.
|
||||
htdflBdstDelete: async (data: customHtdflBdst, code: string | number) => {
|
||||
try {
|
||||
await deleteFectch(`/reuseFc/htdflInfo/${data.reuseBuilding?.[0]?.bdstRuseFcltSn}`);
|
||||
await deleteFectch(`/drain/facility/${data.reuseBuilding?.[0]?.bdstRuseFcltSn}`);
|
||||
toast.success(`${data.bdstNm} 시설이 삭제되었습니다.`);
|
||||
|
||||
const htdflRes = await initFetch(String(code));
|
||||
|
||||
@@ -251,7 +251,7 @@ export const rswtFacActionsExport: (set: any) => rswtFacSActions = (
|
||||
// 중수도시설을 삭제한다.
|
||||
rswtBdstDelete: async (data: customRswtBdst, code: string | number) => {
|
||||
try {
|
||||
await deleteFectch(`/reuseFc/rswtInfo/${data.reuseBuilding?.[0]?.bdstRuseFcltSn}`);
|
||||
await deleteFectch(`/reuseFc/waterreuseFc/${data.reuseBuilding?.[0]?.bdstRuseFcltSn}`);
|
||||
toast.success(`${data.bdstNm} 시설이 삭제되었습니다.`);
|
||||
|
||||
const rswtRes = await initFetch(code);
|
||||
|
||||
Reference in New Issue
Block a user