The notification always appears “Migrations: Finished migrating.” before the real migration seed is finished. I chained all. I’ve checked all.
During migration, we use the async mechanism
const { db } = MongoInternals.defaultRemoteCollectionDriver().mongo;
I’ve just found that MeteorMigration does not support promise-based functional. As a solution we use Meteor.wrapAsync. But it does not help.
const wrapIntoMongoTransaction = Meteor.wrapAsync(function (func, callback) {
wrapIntoMongoTransactionAsync(func).then(callback);
});
And then simply call.