Fix qr code generator functions

This commit is contained in:
Eli Ribble 2026-04-23 00:30:42 +00:00
parent 582aa952e4
commit 1ddba5ebb1
No known key found for this signature in database

View file

@ -30,12 +30,12 @@ func (res *qrcodeR) Mailer(ctx context.Context, w http.ResponseWriter, r *http.R
content := config.MakeURLReport("/mailer/%s", code)
return writeQRCode(w, r, content)
}
func (res *qrcodeR) Marketing(w http.ResponseWriter, r *http.Request) *nhttp.ErrorWithStatus {
func (res *qrcodeR) Marketing(ctx context.Context, w http.ResponseWriter, r *http.Request) *nhttp.ErrorWithStatus {
content := "https://nidus.cloud"
return writeQRCode(w, r, content)
}
func (res *qrcodeR) Report(w http.ResponseWriter, r *http.Request) *nhttp.ErrorWithStatus {
func (res *qrcodeR) Report(ctx context.Context, w http.ResponseWriter, r *http.Request) *nhttp.ErrorWithStatus {
vars := mux.Vars(r)
code := vars["code"]
if code == "" {