Răsfoiți Sursa

Fixed api method for upgrading the agent

jnfrati 4 ani în urmă
părinte
comite
2d782c84b6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 }
   { project_id: number; cluster_id: number }
 >(
 >(
-  "GET",
+  "POST",
   ({ project_id, cluster_id }) =>
   ({ project_id, cluster_id }) =>
     `/api/projects/${project_id}/clusters/${cluster_id}/agent/upgrade`
     `/api/projects/${project_id}/clusters/${cluster_id}/agent/upgrade`
 );
 );