소스 검색

use getIdStringForRef

Futa Arai 1 년 전
부모
커밋
90d15fe917
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      apps/app/src/features/page-bulk-export/server/service/page-bulk-export/index.ts

+ 2 - 2
apps/app/src/features/page-bulk-export/server/service/page-bulk-export/index.ts

@@ -5,7 +5,7 @@ import { Writable } from 'stream';
 import { pipeline as pipelinePromise } from 'stream/promises';
 
 import {
-  getIdForRef, type IPage, isPopulated, SubscriptionStatusType,
+  getIdForRef, getIdStringForRef, type IPage, isPopulated, SubscriptionStatusType,
 } from '@growi/core';
 import { getParentPath, normalizePath } from '@growi/core/dist/utils/path-utils';
 import type { Archiver } from 'archiver';
@@ -208,7 +208,7 @@ class PageBulkExportService {
       write: async(page: PageDocument, encoding, callback) => {
         try {
           if (page.revision != null) {
-            revisionListHash.update(getIdForRef(page.revision).toString());
+            revisionListHash.update(getIdStringForRef(page.revision));
           }
           await PageBulkExportPageSnapshot.create({
             pageBulkExportJob,