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
+7 -2
View File
@@ -26,7 +26,12 @@ val domainModule = module {
single<PasswordHash> { BcryptPasswordHash() }
single { SimpleJwt(get()) }
single { JwtPayloadExtractor(get()) }
single { NoteService(get(), get(), get(), get()) }
single {
NoteService(get(), get(), get(), get()).apply {
dropAllIndexes()
indexAll()
}
}
single<MarkdownConverter> { MarkdownConverterImpl() }
single<ExportUseCase> { ExportUseCaseImpl(get()) }
single<ExportUseCase> { ExportUseCaseImpl(get(), get()) }
}