Explorar o código

Fixed api method for upgrading the agent

jnfrati %!s(int64=4) %!d(string=hai) anos
pai
achega
2d782c84b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dashboard/src/shared/api.tsx

+ 1 - 1
dashboard/src/shared/api.tsx

@@ -1647,7 +1647,7 @@ const upgradePorterAgent = baseApi<
   {},
   { project_id: number; cluster_id: number }
 >(
-  "GET",
+  "POST",
   ({ project_id, cluster_id }) =>
     `/api/projects/${project_id}/clusters/${cluster_id}/agent/upgrade`
 );