diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-12-05 03:28:04 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-12-05 03:28:04 +0000 |
| commit | 93b6b8868d409c7f6c9d9222b93750848caaedde (patch) | |
| tree | f3118e0afed688144cad9ea1ce9da6c1909781be /lib/bidding/manage | |
| parent | 8ee21b4e9691b4f72e333af8a61918ffd869404a (diff) | |
(최겸) 구매 입찰 수정
Diffstat (limited to 'lib/bidding/manage')
| -rw-r--r-- | lib/bidding/manage/import-bidding-items-from-excel.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bidding/manage/import-bidding-items-from-excel.ts b/lib/bidding/manage/import-bidding-items-from-excel.ts index 2e0dfe33..fe5b17a9 100644 --- a/lib/bidding/manage/import-bidding-items-from-excel.ts +++ b/lib/bidding/manage/import-bidding-items-from-excel.ts @@ -1,6 +1,7 @@ import ExcelJS from "exceljs" import { PRItemInfo } from "@/components/bidding/manage/bidding-items-editor" import { getProjectIdByCodeAndName } from "./project-utils" +import { decryptWithServerAction } from "@/components/drm/drmUtils" export interface ImportBiddingItemsResult { success: boolean @@ -19,7 +20,8 @@ export async function importBiddingItemsFromExcel( try { const workbook = new ExcelJS.Workbook() - const arrayBuffer = await file.arrayBuffer() + // DRM 해제 후 ArrayBuffer 획득 (DRM 서버 미연결 시 원본 반환) + const arrayBuffer = await decryptWithServerAction(file) await workbook.xlsx.load(arrayBuffer) const worksheet = workbook.worksheets[0] |
