diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-22 02:57:00 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-22 02:57:00 +0000 |
| commit | ee57cc221ff2edafd3c0f12a181214c602ed257e (patch) | |
| tree | 148f552f503798f7a350d6eff936b889f16be49f /lib/soap/mdg/send/vendor-master/action.ts | |
| parent | 14f61e24947fb92dd71ec0a7196a6e815f8e66da (diff) | |
(대표님, 최겸) 이메일 템플릿, 벤더데이터 변경사항 대응, 기술영업 변경요구사항 구현
Diffstat (limited to 'lib/soap/mdg/send/vendor-master/action.ts')
| -rw-r--r-- | lib/soap/mdg/send/vendor-master/action.ts | 5 |
1 files changed, 2 insertions, 3 deletions
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; } } - - |
