From de4c6593f0cc91c6e0c1a4e2bf9581f11f4f5c98 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Sun, 2 Nov 2025 14:03:34 +0900 Subject: (김준회) SWP 리스트 관리 파트 오류 수정 및 요구사항 반영, 동적 상태 리스트 필터링 변경, null은 동기화 전(전송 전)으로 간주, 선택된 것만 보내도록 변경 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/swp/vendor-actions.ts | 100 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 99 insertions(+), 1 deletion(-) (limited to 'lib/swp/vendor-actions.ts') diff --git a/lib/swp/vendor-actions.ts b/lib/swp/vendor-actions.ts index f65ed007..f87c41a8 100644 --- a/lib/swp/vendor-actions.ts +++ b/lib/swp/vendor-actions.ts @@ -1,5 +1,17 @@ "use server"; +/** + * SWP Vendor Actions + * + * 벤더 페이지(제출)에서 사용하는 서버 액션 모음입니다. + * - 다운로드 및 업로드는 서버액션의 데이터 직렬화 문제로, 별도의 API Route로 분리함 + * - 간단한 API 호출은 서버 액션으로 관리 + * + * 1. 파일 메타정보 업로드 + * 2. 파일 업로드 취소 + * + */ + import { getServerSession } from "next-auth"; import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import db from "@/db/db"; @@ -145,7 +157,7 @@ export async function fetchVendorDocuments(projNo?: string): Promise