diff options
| author | joonhoekim <26rote@gmail.com> | 2025-09-03 09:22:56 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-09-03 09:22:56 +0000 |
| commit | bfe354f7633f62350e61eb784cbf1926079339d1 (patch) | |
| tree | 691ad115b89ee1b7e5fb2dab165c85ea325cf920 /instrumentation.ts | |
| parent | c5fc7195505d82c60fc9dffc3744782b91d7ebb7 (diff) | |
(김준회) 구매그룹코드를 users 테이블의 userCode 컬럼에 업데이트하도록 cronjob 등록
Diffstat (limited to 'instrumentation.ts')
| -rw-r--r-- | instrumentation.ts | 9 |
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.'); + // 스케줄러 실패해도 애플리케이션은 계속 실행 + } } } |
