Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hennessyevan committed Sep 7, 2019
1 parent 4069167 commit b1428c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/commands/seed.ts
Expand Up @@ -33,12 +33,9 @@ export default class Seed extends Command {
}

async run() {
// const { args, flags } = this.parse(Seed)

// const { collection } = args
log(`Seeding all collections`)

const tasks = new Listr<ListrContext>([
return new Listr<ListrContext>([
{
title: "Initializing",
task: init
Expand All @@ -60,7 +57,11 @@ export default class Seed extends Command {
task: createDocsFromData
}
])

tasks.run()
.run()
.then(ctx => {
ctx.mongoose.disconnect().then(() => {
process.exit()
})
})
}
}
1 change: 0 additions & 1 deletion src/utils/index.ts
Expand Up @@ -3,7 +3,6 @@ export * from "./parseOptions"
export * from "./log"
export * from "./getRefPaths"
export * from "./generateData"
export * from "./populateSmartIds"
export * from "./sanitizeCache"
export * from "./removeDuplicateData"
export * from "./loadFile"

0 comments on commit b1428c9

Please sign in to comment.