chore: use yamlsource (#27466)
Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
50c5e9ac97
commit
9293cdef3e
13 changed files with 60 additions and 51 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue