Skip to content

Commit 0635562

Browse files
author
hersveit
authored
Merge pull request #10 from fullstack-development/8-fix-migrations
Fix removing config file after running migrations
2 parents c72533b + 0c33aca commit 0635562

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ async function main() {
4949
});
5050
} catch (e) {
5151
throw e;
52+
} finally {
53+
fs.rmSync(configFile);
5254
}
53-
54-
fs.rmSync(configFile);
5555
}
5656
main();

0 commit comments

Comments
 (0)