diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-18 21:41:53 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-18 21:41:53 +0200 |
commit | 69d71c2a495d9cce1984ba2ffddf1d98622b01fe (patch) | |
tree | 3abd105a970fe773c0b19cb0c4f974688001e5e0 /cmd/server | |
parent | 05a8dbf46792adfef007a0ffbcb654026db036fa (diff) | |
download | lens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.tar.gz lens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.tar.bz2 lens-69d71c2a495d9cce1984ba2ffddf1d98622b01fe.zip |
feat: Move to user path media
Now media also base on user folder to fetch its media.
Diffstat (limited to 'cmd/server')
-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) } |