Taichi Masuyama 4 лет назад
Родитель
Сommit
c983223c5e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/server/service/page.js

+ 1 - 1
packages/app/src/server/service/page.js

@@ -1198,7 +1198,7 @@ class PageService {
           }
 
           // finish migration
-          if (res.result.nModified === 0) { // TODO: find the best property to count updated documents
+          if (res.result.nModified === 0 && res.result.nMatched === 0) { // TODO: find the best property to count updated documents
             shouldContinue = false;
             logger.error('Migration is unable to continue', 'parentPaths:', parentPaths, 'bulkWriteResult:', res);
           }