qa: Improve design
This commit is contained in:
parent
13588fc634
commit
0e19b59452
19 changed files with 487 additions and 241 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Reference in a new issue