diff --git a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx index f34353add..00c965273 100644 --- a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx +++ b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/index.tsx @@ -243,7 +243,7 @@ export const pubFacActionsExport: (set: any) => pubFacActions = (set: any) => { },pbnstRuseFcltUpdate : async(ruseRes:customPbnst[])=>{ try { - const response = await putFectch( + await putFectch( `/reuseFc/pubFc`, ruseRes ); @@ -254,7 +254,7 @@ export const pubFacActionsExport: (set: any) => pubFacActions = (set: any) => { } ,pbnstRuseBizUpdate : async(ruseRes:fcBizType[])=>{ try { - const response = await putFectch( + await putFectch( `/reuseFc/pubFcBiz`, ruseRes ); @@ -303,7 +303,7 @@ export const pubFacActionsExport: (set: any) => pubFacActions = (set: any) => { }, fileDownLoad: async (atflCd: string) => { try { - const response = await getFetch( + await getFetch( fetchType.CS, `/attach-service/api/v1/atflcd/download/${atflCd}` ); @@ -328,10 +328,9 @@ export const pubFacActionsExport: (set: any) => pubFacActions = (set: any) => { console.log(e); } },getFcOrgwts : async (fcltPkList: string[] ,size:number) => { - let url = `/prcsFclt/ruseInfo/1/${size}/A/0/0/1/SW`; const fcOrgwtsNmList = await postFectch( - url, + `/prcsFclt/ruseInfo/1/${size}/A/0/0/1/SW`, fcltPkList, fetchType.COMMON ); diff --git a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx index a08c5301a..8f65c68c8 100644 --- a/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx +++ b/apps/wr/app/store/ruseFcltMng/fcltReg/pbnstReg/type.tsx @@ -1,5 +1,4 @@ import { z } from "zod"; -import { TEST_UUID } from "../rainReg"; export type customPbnst = z.infer; @@ -60,7 +59,7 @@ export type PbnstDemandComType = { // dmdInfoFk:string|'' }; -const pubHasuZod = z.object({ +export const pubHasuZod = z.object({ choose: z.boolean().default(false), bscFctCd: z.string(), sido: z.string().default(""), @@ -82,10 +81,6 @@ const zNum = z.preprocess( (v) => (v !== null && v !== undefined ? Number(v) : v), z.number() ); -const zNumGte = z.preprocess( - (v) => (v !== null && v !== undefined ? Number(v) : v), - z.number().gt(0, { message: "0보다 큰 숫자만 가능합니다" }) -); const zNumNullish = zNum.nullish(); const zNumDefaultZero = zNum.default(0).nullish();