summaryrefslogtreecommitdiff
path: root/lib/bidding/manage/import-bidding-items-from-excel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bidding/manage/import-bidding-items-from-excel.ts')
-rw-r--r--lib/bidding/manage/import-bidding-items-from-excel.ts4
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]