Skip to content

Commit

Permalink
remove updateToken from webui api
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder committed Sep 17, 2023
1 parent 9e5b4f0 commit 6dba8cd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions webui/src/lib/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}


Expand Down

0 comments on commit 6dba8cd

Please sign in to comment.