Accept 204 response status as valid

This commit is contained in:
Lukas Hirt
2020-09-09 13:53:49 +02:00
parent ebbf1c8262
commit 5fa91c4a1d

View File

@@ -223,7 +223,7 @@ const actions = {
}
})
if (response.status === 201) {
if (response.status === 201 || response.status === 204) {
commit('DELETE_ACCOUNT', account.id)
} else {
failedAccounts.push({ account: account.diisplayName, statusText: response.statusText })