Small refactor

This commit is contained in:
2020-09-29 23:42:03 +02:00
parent 0dfb2a7e03
commit 1bc45461c3
15 changed files with 226 additions and 224 deletions
@@ -32,5 +32,8 @@ val persistanceModule = module {
single<NoteRepository> { NoteRepositoryImpl(get()) }
single<DbMigrations> { DbMigrationsImpl(get(), get()) }
single<DataSource> { hikariDataSource(get()) }
single { Database.connect(get<DataSource>()) }
single {
get<DbMigrations>().migrate()
Database.connect(get<DataSource>())
}
}