summaryrefslogtreecommitdiff
path: root/instrumentation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'instrumentation.ts')
-rw-r--r--instrumentation.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/instrumentation.ts b/instrumentation.ts
index a98cda12..3a2cc9bb 100644
--- a/instrumentation.ts
+++ b/instrumentation.ts
@@ -49,5 +49,14 @@ export async function register() {
console.error('Failed to start SHI-API users daily cron scheduler.');
// 스케줄러 실패해도 애플리케이션은 계속 실행
}
+
+ try {
+ // 사용자 코드 동기화 스케줄러 시작 (구매그룹코드)
+ const { startUserCodeSyncScheduler } = await import('./lib/nonsap-sync/purchase-group-code/user-code-sync-scheduler');
+ await startUserCodeSyncScheduler();
+ } catch {
+ console.error('Failed to start User Code sync scheduler.');
+ // 스케줄러 실패해도 애플리케이션은 계속 실행
+ }
}
}