minor improvements

This commit is contained in:
Moriz Wahl 2021-12-27 16:03:20 +01:00
parent 3d349b2121
commit 28520d6de8
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ const migration = new Migration({
dir: '../database/migrations/', // CONFIG.MIGRATIONS_DIRECTORY,
})
const initialize = async () => {
const initialize = async (): Promise<void> => {
await migration.initialize()
}

View File

@ -19,7 +19,6 @@ const run = async (command: string) => {
throw new Error(`Couldn't open connection to database`)
}
// Database connection for Migrations
await migration.initialize()
// Execute command
@ -32,7 +31,7 @@ const run = async (command: string) => {
break
case 'reset':
// TODO protect from production
await resetDB(false) // use for resetting database
await resetDB() // use for resetting database
break
case 'seed':
// TODO protect from production