From 6dba8cd7dfee282701111687d838652e413c4e1f Mon Sep 17 00:00:00 2001 From: Barak Amar Date: Sun, 17 Sep 2023 16:50:04 +0300 Subject: [PATCH] remove updateToken from webui api --- webui/src/lib/api/index.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/webui/src/lib/api/index.js b/webui/src/lib/api/index.js index c6b6e604317..172de1c4c53 100644 --- a/webui/src/lib/api/index.js +++ b/webui/src/lib/api/index.js @@ -539,16 +539,6 @@ class Branches { } return response.json(); } - - async updateToken(repoId, branch, staging_token) { - const response = await apiRequest(`/repositories/${encodeURIComponent(repoId)}/branches/${encodeURIComponent(branch)}/update_token`, { - method: 'PUT', - body: JSON.stringify({staging_token: staging_token}), - }); - if (response.status !== 201) { - throw new Error(await extractError(response)); - } - } }