From ee57cc221ff2edafd3c0f12a181214c602ed257e Mon Sep 17 00:00:00 2001 From: dujinkim Date: Tue, 22 Jul 2025 02:57:00 +0000 Subject: (대표님, 최겸) 이메일 템플릿, 벤더데이터 변경사항 대응, 기술영업 변경요구사항 구현 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/soap/mdg/send/vendor-master/action.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/soap/mdg') diff --git a/lib/soap/mdg/send/vendor-master/action.ts b/lib/soap/mdg/send/vendor-master/action.ts index 24112316..ec267bbb 100644 --- a/lib/soap/mdg/send/vendor-master/action.ts +++ b/lib/soap/mdg/send/vendor-master/action.ts @@ -18,6 +18,7 @@ import { } from "@/db/schema/MDG/mdg"; import { eq, sql, desc } from "drizzle-orm"; import { withSoapLogging } from "../../utils"; +// public 경로 사용하지 않음. 형제경로 사용. (처리완료) import fs from 'fs'; import path from 'path'; import { XMLBuilder } from 'fast-xml-parser'; @@ -49,7 +50,7 @@ function parseCsv(content: string): CsvField[] { } // 모듈 초기화 시 CSV 로드 -const CSV_PATH = path.join(process.cwd(), 'public', 'wsdl', 'P2MD3007_AO.csv'); +const CSV_PATH = path.join(__dirname, 'P2MD3007_AO.csv'); let CSV_FIELDS: CsvField[] = []; try { const csvRaw = fs.readFileSync(CSV_PATH, 'utf-8'); @@ -699,5 +700,3 @@ export async function getVendorSendStatistics(): Promise<{ throw error; } } - - -- cgit v1.2.3