use an enum for db settings

This commit is contained in:
sentriz
2023-09-14 00:51:40 +01:00
parent 1c0e844027
commit 12c31cd334
9 changed files with 45 additions and 37 deletions

View File

@@ -349,7 +349,7 @@ func main() {
})
}
lastfmAPIKey, _ := dbc.GetSetting("lastfm_api_key")
lastfmAPIKey, _ := dbc.GetSetting(db.LastFMAPIKey)
if lastfmAPIKey != "" {
g.Add(func() error {
log.Printf("starting job 'refresh artist info'\n")