Browse Source

Ignore schema and bulkWrite

Shun Miyazawa 1 year ago
parent
commit
f760849da3

+ 2 - 2
apps/app/src/migrations/20211227060705-revision-path-to-page-id-schema-migration--fixed-7549.js

@@ -47,7 +47,7 @@ module.exports = {
           };
           };
         });
         });
 
 
-        await Revision.bulkWrite(updateManyOperations);
+        await Revision.bulkWrite(updateManyOperations, { strict: false });
 
 
         callback();
         callback();
       },
       },
@@ -98,7 +98,7 @@ module.exports = {
           };
           };
         });
         });
 
 
-        await Revision.bulkWrite(updateManyOperations);
+        await Revision.bulkWrite(updateManyOperations, { strict: false });
 
 
         callback();
         callback();
       },
       },