aboutsummaryrefslogtreecommitdiff
path: root/cmd/server
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-18 21:41:53 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-18 21:41:53 +0200
commit69d71c2a495d9cce1984ba2ffddf1d98622b01fe (patch)
tree3abd105a970fe773c0b19cb0c4f974688001e5e0 /cmd/server
parent05a8dbf46792adfef007a0ffbcb654026db036fa (diff)
downloadlens-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.go6
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)
}