Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Jun 21, 2023
1 parent 8598829 commit 3abe322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

const { db } = require("../dist/db");

const { default: run } = require("../dist/index");
const { default: migrate } = require("../dist/migrate-latest");

Expand All @@ -8,6 +10,7 @@ async function start(date) {
await migrate();
console.log(`\nStarting import\n`);
await run(date);
db.destroy();
}

if (require.main === module) {
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ async function run(date?: string) {

debug("close");

db.destroy();

return res;
}

Expand Down

0 comments on commit 3abe322

Please sign in to comment.