qa: Improve design

This commit is contained in:
nemunaire 2022-11-07 03:47:48 +01:00
commit 0e19b59452
19 changed files with 487 additions and 241 deletions

View file

@ -91,7 +91,7 @@ export class QAComment {
method: 'DELETE',
headers: {'Accept': 'application/json'}
});
if (res.status == 200) {
if (res.status < 300) {
return true;
} else {
throw new Error((await res.json()).errmsg);