This commit is contained in:
Niko Storni 2025-05-13 22:52:40 +02:00
parent d21b0867dd
commit 4928e430c0
2 changed files with 4 additions and 1 deletions

View file

@ -38,6 +38,9 @@ func uploadCmd(cmd *cobra.Command, args []string) {
defer store.Shutdown()
databaseConn, err := config.LoadDatabase(conf, "upload.yaml")
if err != nil {
log.Fatal(err)
}
uploader := reflector.NewUploader(databaseConn, store, uploadWorkers, uploadSkipExistsCheck, uploadDeleteBlobsAfterUpload)

View file

@ -83,7 +83,7 @@ func LoadDatabase(path, file string) (*db.SQL, error) {
return nil, errors.Err(err)
}
dbConfig := v.Sub("db")
dbConfig := v.Sub("database")
if dbConfig == nil {
return nil, errors.Err("db config not found")
}