Yuki Takei 1 год назад
Родитель
Сommit
0fec764427
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/app/src/server/service/g2g-transfer.ts

+ 1 - 1
apps/app/src/server/service/g2g-transfer.ts

@@ -614,7 +614,7 @@ export class G2GTransferReceiverService implements Receiver {
       if (collectionName === 'configs' && options.mode !== ImportMode.flushAndInsert) {
         throw new Error('`flushAndInsert` is only available as an import setting for configs collection');
       }
-      if (collectionName === 'pages' && options.mode === 'insert') {
+      if (collectionName === 'pages' && options.mode === ImportMode.insert) {
         throw new Error('`insert` is not available as an import setting for pages collection');
       }
       if (collectionName === 'attachmentFiles.chunks') {