chore: use yamlsource (#27466)

Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
Maschga 2026-02-17 10:47:43 +01:00 • committed by GitHub
parent 50c5e9ac97
commit 9293cdef3e
13 changed files with 60 additions and 51 deletions

View file

@ -41,8 +41,8 @@ func updateSponsortokenHandler(pub publisher) func(w http.ResponseWriter, r *htt
}
pub(keys.Sponsor, globalconfig.ConfigStatus{
Status: sponsor.RedactedStatus(),
FromYaml: false,
Status: sponsor.RedactedStatus(),
YamlSource: globalconfig.YamlSourceNone,
})
}
@ -59,8 +59,8 @@ func deleteSponsorTokenHandler(pub publisher) func(w http.ResponseWriter, r *htt
settings.SetString(keys.SponsorToken, "")
pub(keys.Sponsor, globalconfig.ConfigStatus{
Status: sponsor.Status{},
FromYaml: false,
Status: sponsor.Status{},
YamlSource: globalconfig.YamlSourceNone,
})
setConfigDirty()