From 1ddba5ebb1a263fa112b044bf6910d9057a24f15 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 23 Apr 2026 00:30:42 +0000 Subject: [PATCH] Fix qr code generator functions --- resource/qrcode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/qrcode.go b/resource/qrcode.go index aec194e0..32495b10 100644 --- a/resource/qrcode.go +++ b/resource/qrcode.go @@ -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 == "" {