summaryrefslogtreecommitdiff
path: root/instrumentation.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-08-14 13:15:21 +0000
committerjoonhoekim <26rote@gmail.com>2025-08-14 13:15:21 +0000
commit49d236df3bd2bd976ebc424644f34f5affa1074f (patch)
tree7b0f60c399e724847894061fae74876aa1bf5c7e /instrumentation.ts
parent969c25b56f6d29d7ffa4bc2ce04c5fb4e5846b34 (diff)
(김준회) 결재 테스트 모듈 수정, 환경병수 eVCP 운영 대응, SGIPS JWT TOKEN 수정, SHI-API 기반 유저 관리 추가, 유저목록 테이블 변경
Diffstat (limited to 'instrumentation.ts')
-rw-r--r--instrumentation.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/instrumentation.ts b/instrumentation.ts
index db8da371..a98cda12 100644
--- a/instrumentation.ts
+++ b/instrumentation.ts
@@ -30,7 +30,7 @@ export async function register() {
}
try {
- // Procurement 동기화 스케줄러 시작 (지불조건, 인코텀즈, 선적/하역지)
+ // Procurement 동기화 스케줄러 시작 (지불조건, 인코텀즈, 선적지, 하역지)
const { startProcurementSyncScheduler } = await import(
'./lib/nonsap-sync/procurement-sync-service'
);
@@ -40,5 +40,14 @@ export async function register() {
console.error('Failed to start Procurement sync scheduler.');
// 스케줄러 실패해도 애플리케이션은 계속 실행
}
+
+ try {
+ // SHI-API NONSAP 사용자 동기화 - 1일 1회 CRON 등록
+ const { startShiApiUsersDailySyncScheduler } = await import('./lib/shi-api/users-sync-scheduler');
+ await startShiApiUsersDailySyncScheduler();
+ } catch {
+ console.error('Failed to start SHI-API users daily cron scheduler.');
+ // 스케줄러 실패해도 애플리케이션은 계속 실행
+ }
}
}