From 0e68be98b4ad4691af77232cb0b02b17af825ba3 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Wed, 6 Aug 2025 04:25:00 +0000 Subject: (김준회) 문서/도서 리스트 및 제출(조선) 메뉴 디버깅(dolce) - attachment revisionId 누락건 해결 - crypto 모듈에서 deprecated des-ecb 알고리즘 사용을 위한 추가 처리 - enhancedDocumentsView에 projectId 추가 - route에서 contractId -> projectId 사용하도록 변경 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/vendor-document-list/sync-service.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lib/vendor-document-list/sync-service.ts') diff --git a/lib/vendor-document-list/sync-service.ts b/lib/vendor-document-list/sync-service.ts index e058803b..0544ce06 100644 --- a/lib/vendor-document-list/sync-service.ts +++ b/lib/vendor-document-list/sync-service.ts @@ -309,10 +309,16 @@ class SyncService { throw new Error('DOLCE upload is not enabled') } - // 변경사항에서 리비전 ID들 추출 - const revisionIds = changes - .filter(change => change.entityType === 'revision') - .map(change => change.entityId) + // 변경사항에서 리비전 ID들 추출 (revision 엔티티 + attachment 엔티티의 revisionId) + const revisionIds = [...new Set([ + ...changes + .filter(change => change.entityType === 'revision') + .map(change => change.entityId), + ...changes + .filter(change => change.entityType === 'attachment') + .map(change => change.newValues?.revisionId) + .filter((id): id is number => typeof id === 'number' && id > 0) + ])] if (revisionIds.length === 0) { return { -- cgit v1.2.3