diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vendor-document-list/sync-service.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/vendor-document-list/sync-service.ts b/lib/vendor-document-list/sync-service.ts index cdc22e11..cdbf489f 100644 --- a/lib/vendor-document-list/sync-service.ts +++ b/lib/vendor-document-list/sync-service.ts @@ -312,6 +312,12 @@ class SyncService { const endpointResults: Record<string, any> = {} try { + // 세션에서 사용자 정보 가져오기 + const session = await getServerSession(authOptions) + if (!session?.user) { + throw new Error("사용자 인증이 필요합니다.") + } + // DOLCE 업로드 서비스 동적 임포트 const { dolceUploadService } = await import('./dolce-upload-service') @@ -339,12 +345,12 @@ class SyncService { } } - // DOLCE 업로드 실행 + // DOLCE 업로드 실행 - 사용자 정보 전달 const uploadResult = await dolceUploadService.uploadToDoLCE( projectId, revisionIds, - 'system_user', // 시스템 사용자 ID - 'System Upload' + session.user.email || 'system_user', // 사용자 email + session.user.name || 'System Upload' // 사용자 name ) endpointResults['dolce_upload'] = uploadResult |
