Use new account update API

This commit is contained in:
2022-11-01 16:56:46 +01:00
parent 666291a1d6
commit cd8bf8afe4
10 changed files with 162 additions and 111 deletions

View File

@@ -11,12 +11,11 @@ const update = async () => {
loading = true
const form = new FormData()
form.append("update", "subscription")
form.append("subscription", subscription)
try {
const resp = await fetch(
window.api_endpoint+"/user/subscription",
window.api_endpoint+"/user",
{ method: "PUT", body: form },
)
if(resp.status >= 400) {