diff options
Diffstat (limited to 'cmd/server/main.go')
-rw-r--r-- | cmd/server/main.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/server/main.go b/cmd/server/main.go index b81b291..8f163df 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -62,6 +62,10 @@ func main() { panic("failed to migrate database: " + err.Error()) } + if *dbType == "sqlite" { + *schedulerCount = 1 + } + hexKey, err := hex.DecodeString(*key) if err != nil { panic("failed to decode key database: " + err.Error()) @@ -104,7 +108,7 @@ func main() { view.NewAuthView(userController), view.NewFileSystemView(*fileSystemController, settingsRepository), view.NewSettingsView(settingsRepository, userRepository), - view.NewMediaView(mediaRepository), + view.NewMediaView(mediaRepository, userRepository), } { v.SetMyselfIn(extRouter) } |