fix: add default value for db migrations path

This commit is contained in:
Karol Sójko 2022-06-20 12:50:10 +02:00
parent 17a0c9fd24
commit 1c4c609865
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0

View file

@ -35,7 +35,7 @@ export const AppDataSource = new DataSource({
removeNodeErrorCount: 10,
},
entities: [Job, Predicate],
migrations: [env.get('DB_MIGRATIONS_PATH')],
migrations: [env.get('DB_MIGRATIONS_PATH', true) ?? 'dist/migrations/*.js'],
migrationsRun: true,
logging: <LoggerOptions>env.get('DB_DEBUG_LEVEL'),
})