tenseleyflow/shithub / da62c4c

Browse files

api/actions_caches: gofumpt

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
da62c4c8d6ee8c31c82c0e4ed594f15e05667422
Parents
fedac0a
Tree
b3a9856

1 changed file

StatusFile+-
M internal/web/handlers/api/actions_caches.go 5 5
internal/web/handlers/api/actions_caches.gomodified
@@ -103,8 +103,8 @@ func (h *Handlers) actionsCachesList(w http.ResponseWriter, r *http.Request) {
103
 		w.Header().Set("Link", link)
103
 		w.Header().Set("Link", link)
104
 	}
104
 	}
105
 	writeJSON(w, http.StatusOK, map[string]any{
105
 	writeJSON(w, http.StatusOK, map[string]any{
106
-		"total_count":     total,
106
+		"total_count":    total,
107
-		"actions_caches":  out,
107
+		"actions_caches": out,
108
 	})
108
 	})
109
 }
109
 }
110
 
110
 
@@ -154,9 +154,9 @@ func (h *Handlers) actionsCachesDeleteByKey(w http.ResponseWriter, r *http.Reque
154
 	}
154
 	}
155
 	ref := pgTextOrNull(r.URL.Query().Get("ref"))
155
 	ref := pgTextOrNull(r.URL.Query().Get("ref"))
156
 	objectKeys, err := actionsdb.New().DeleteWorkflowCachesByKey(r.Context(), h.d.Pool, actionsdb.DeleteWorkflowCachesByKeyParams{
156
 	objectKeys, err := actionsdb.New().DeleteWorkflowCachesByKey(r.Context(), h.d.Pool, actionsdb.DeleteWorkflowCachesByKeyParams{
157
-		RepoID:    repo.ID,
157
+		RepoID:   repo.ID,
158
-		CacheKey:  key,
158
+		CacheKey: key,
159
-		GitRef:    ref,
159
+		GitRef:   ref,
160
 	})
160
 	})
161
 	if err != nil {
161
 	if err != nil {
162
 		h.d.Logger.ErrorContext(r.Context(), "api: delete caches by key", "error", err)
162
 		h.d.Logger.ErrorContext(r.Context(), "api: delete caches by key", "error", err)