Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function runMigrations(config) {
Migrate.launchReporter(config);
if (options.f) {
await Migrate.runFrom(options.f, config);
} else {
const needsMigrating = await Migrate.needsMigrating(config);
if (needsMigrating) {
await Migrate.run(config);
} else {
config.logger.log("Network up to date.");
}
}
}
}