mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
minor improvements
This commit is contained in:
parent
3d349b2121
commit
28520d6de8
@ -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()
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user