lib 폴더 빌드 오류 해결.
iipbs_wr / build (push) Waiting to run

This commit is contained in:
truthwing
2025-07-14 14:31:32 +09:00
parent 6d606cfce2
commit 1926d53da6
4 changed files with 12 additions and 16 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
//8880
import { CS_URL, DEV_URL_FO, DEV_URL_WR, LOCAL_URL } from "../config/";
import { DEV_URL_FO, DEV_URL_WR, LOCAL_URL } from "../config/";
export const fetchType = { COMMON: "common", WR: "wr", LOCAL: "LOCAL" , CS: "CS" };
@@ -2,7 +2,6 @@ import type { TableUpperProps } from "@/app/store/common/type/header";
import type { rainChkZodType } from "@/app/store/prfmncReg/chkgdnReg/rainChkgdn";
import type { rswtChkZodType } from "@/app/store/prfmncReg/chkgdnReg/rswrtChkgdn";
import { Checkbox, Input, TableCell, TableRow } from "@common/components/ui";
import { useEffect } from "react";
export const rainChkTableData = (chkData: rainChkZodType[]) => {
// 1. chkgdnFk + utztnUsgCd 기준 누계 정보 만들기
+2 -2
View File
@@ -1,9 +1,9 @@
import type { comCodeState } from "@/app/store/common/code";
import {
filePickedBlob,
type SelectDataType,
type ReturnType,
filePickedBlobArray,
type ReturnType,
type SelectDataType,
type SheetParameter,
} from "@common/business_components/ui";
import { Button } from "@common/components/ui";
+9 -12
View File
@@ -1,15 +1,14 @@
import type { FilesType } from "@/components/ui/form/fcltReg/pbnstReg/mngReg/mngRegForm";
import toast from "react-hot-toast";
import {
Upload,
type DetailedError,
type HttpRequest,
type HttpResponse,
type OnSuccessPayload,
type DetailedError,
} from "tus-js-client";
import { CS_TUS_UPLOAD, CS_URL } from "../config";
import type { FilesType } from "@/components/ui/form/fcltReg/pbnstReg/mngReg/mngRegForm";
import { fetchType, putFectch } from "../api";
import { error } from "console";
import toast from "react-hot-toast";
import { CS_TUS_UPLOAD } from "../config";
type UploadOptions = {
handleUploadStart?: (upload: Upload) => void;
@@ -26,16 +25,14 @@ export type ReturnFileType = {
lnkgDmnId: string | null;
lnkgDmnNm: string | null;
regDt: Date | null;
atflCd: String;
atflCd: string;
atflSn: number;
atflId: String;
physFileNm: String;
atflId: string;
physFileNm: string;
};
export const TusClientUpload = (oFile: FilesType, options?: UploadOptions) =>
new Promise<ReturnFileType>((resolve, reject) => {
try {
const Authorization = "Authorization";
const AUTH_USER_ID = "token-id";
let fileInfo: string | undefined;
//CS_URL
const uploader = new Upload(oFile.file, {
@@ -77,10 +74,10 @@ export const TusClientUpload = (oFile: FilesType, options?: UploadOptions) =>
WrTableInfo,
fetchType.CS
)
.then((res) => {
.then(() => {
resolve(fileParse);
})
.catch((error) => {
.catch(() => {
reject({
causingError: {
cause: "파일 업로드 업데이트 실패",