Skip to content

Commit

Permalink
fix: running one seed is so slow (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
a60814billy committed Nov 29, 2021
1 parent fcea7a3 commit 36f41f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/seed_one.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exports.handler = async function (args) {
.filter((name) => name !== 'db:seed' && name !== 'db:seed:undo')
.map((file) => path.basename(file));

return migrator.up(seeds);
await migrator.up(seeds);
} catch (e) {
helpers.view.error(e);
}
Expand Down Expand Up @@ -57,7 +57,7 @@ exports.handler = async function (args) {
seeders = seeders.slice(-1);
}

return migrator.down({
await migrator.down({
migrations: _.chain(seeders).map('file').reverse().value(),
});
} catch (e) {
Expand Down

0 comments on commit 36f41f1

Please sign in to comment.