fix: HandleEnvVarDelete uses correct varID route param (closes #104)

This commit is contained in:
clawbot
2026-02-20 03:32:20 -08:00
parent 4a73a5575f
commit 7d1849c8df
2 changed files with 176 additions and 2 deletions

View File

@@ -916,7 +916,7 @@ func (h *Handlers) HandleEnvVarAdd() http.HandlerFunc {
func (h *Handlers) HandleEnvVarDelete() http.HandlerFunc {
return func(writer http.ResponseWriter, request *http.Request) {
appID := chi.URLParam(request, "id")
envVarIDStr := chi.URLParam(request, "envID")
envVarIDStr := chi.URLParam(request, "varID")
envVarID, parseErr := strconv.ParseInt(envVarIDStr, 10, 64)
if parseErr != nil {