From e4ed239bd2d7e9f59e427fd7b6d876a5fb03821b Mon Sep 17 00:00:00 2001 From: elraphty Date: Mon, 28 Oct 2024 17:57:07 +0100 Subject: [PATCH] fixed slice of out bounds error --- handlers/workspaces.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/handlers/workspaces.go b/handlers/workspaces.go index fc243ce99..95b484054 100644 --- a/handlers/workspaces.go +++ b/handlers/workspaces.go @@ -665,7 +665,6 @@ func GetPaymentHistory(w http.ResponseWriter, r *http.Request) { func UpdateWorkspacePendingPayments(w http.ResponseWriter, r *http.Request) { ctx := r.Context() pubKeyFromAuth, _ := ctx.Value(auth.ContextKey).(string) - workspace_uuid := chi.URLParam(r, "workspace_uuid") if pubKeyFromAuth == "" { @@ -713,12 +712,8 @@ func UpdateWorkspacePendingPayments(w http.ResponseWriter, r *http.Request) { } } - var msg map[string]string - - msg["msg"] = "Updated Payments Successfully" - w.WriteHeader(http.StatusOK) - json.NewEncoder(w).Encode(msg) + json.NewEncoder(w).Encode("Updated Payments Successfully") } func (oh *workspaceHandler) PollBudgetInvoices(w http.ResponseWriter, r *http.Request) {