1
0

feat(migration): migration from other services now happens in the background

This commit is contained in:
kolaente
2023-11-09 00:15:11 +01:00
parent 707bb6f89e
commit 46683a2516
10 changed files with 325 additions and 18 deletions

View File

@ -29,6 +29,7 @@ import (
"code.vikunja.io/api/pkg/models"
"code.vikunja.io/api/pkg/modules/auth/openid"
"code.vikunja.io/api/pkg/modules/keyvalue"
migrationHandler "code.vikunja.io/api/pkg/modules/migration/handler"
"code.vikunja.io/api/pkg/red"
"code.vikunja.io/api/pkg/user"
)
@ -100,6 +101,7 @@ func FullInit() {
go func() {
models.RegisterListeners()
user.RegisterListeners()
migrationHandler.RegisterListeners()
err := events.InitEvents()
if err != nil {
log.Fatal(err.Error())