From f3db693400328b2ddab70ddf6a811825b6a16489 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Wed, 27 Aug 2025 08:49:20 +0000 Subject: (김준회) dolce 업로드 호출시 system_user 고정값 -> 벤더 이메일로 변경 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/vendor-document-list/sync-service.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib') 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 = {} 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 -- cgit v1.2.3