Index all notes at start
This commit is contained in:
@@ -14,8 +14,10 @@ import be.simplenotes.app.views.NoteView
|
||||
import be.simplenotes.app.views.SettingView
|
||||
import be.simplenotes.app.views.UserView
|
||||
import be.simplenotes.domain.domainModule
|
||||
import be.simplenotes.domain.usecases.NoteService
|
||||
import be.simplenotes.persistance.DbMigrations
|
||||
import be.simplenotes.persistance.persistanceModule
|
||||
import be.simplenotes.search.searchModule
|
||||
import be.simplenotes.shared.config.DataSourceConfig
|
||||
import be.simplenotes.shared.config.JwtConfig
|
||||
import org.http4k.core.RequestContexts
|
||||
@@ -36,6 +38,7 @@ fun main() {
|
||||
baseModule,
|
||||
noteModule,
|
||||
settingsModule,
|
||||
searchModule,
|
||||
)
|
||||
}.koin
|
||||
|
||||
@@ -50,6 +53,9 @@ fun main() {
|
||||
val migrations = koin.get<DbMigrations>()
|
||||
migrations.migrate()
|
||||
|
||||
val noteService = koin.get<NoteService>()
|
||||
noteService.indexAll()
|
||||
|
||||
koin.get<Server>().start()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user