diff --git a/package-lock.json b/package-lock.json index 8d685752..fb9fcfed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7629,17 +7629,6 @@ } } }, - "node_modules/next-intl/node_modules/@swc/helpers": { - "version": "0.5.18", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.18.tgz", - "integrity": "sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==", - "license": "Apache-2.0", - "optional": true, - "peer": true, - "dependencies": { - "tslib": "^2.8.0" - } - }, "node_modules/next/node_modules/postcss": { "version": "8.4.31", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", diff --git a/src/components/business/construction/contract/actions.ts b/src/components/business/construction/contract/actions.ts index 16a03c9e..0f3fac34 100644 --- a/src/components/business/construction/contract/actions.ts +++ b/src/components/business/construction/contract/actions.ts @@ -408,25 +408,3 @@ export async function deleteContracts(ids: string[]): Promise<{ return { success: false, error: '일괄 삭제에 실패했습니다.' }; } } - -// 계약 생성 (변경 계약서 생성 포함) -export async function createContract( - _data: ContractFormData -): Promise<{ - success: boolean; - data?: { id: string }; - error?: string; -}> { - try { - await new Promise((resolve) => setTimeout(resolve, 500)); - - // TODO: 실제 API 연동 시 데이터 생성 로직 - // 새 계약 ID 생성 (목업) - const newId = String(MOCK_CONTRACTS.length + 1); - - return { success: true, data: { id: newId } }; - } catch (error) { - console.error('createContract error:', error); - return { success: false, error: '계약 생성에 실패했습니다.' }; - } -} \ No newline at end of file