mirror of https://github.com/usual2970/certimate
fix: fix typo
parent
16bc12c15b
commit
7a66bdf139
|
@ -15,8 +15,8 @@ export const notifyTest = async (channel: string) => {
|
|||
},
|
||||
});
|
||||
|
||||
if (resp.status != 0 && resp.status !== 200) {
|
||||
throw new ClientResponseError({ status: resp.status, response: resp, data: {} });
|
||||
if (resp.code != 0) {
|
||||
throw new ClientResponseError({ status: resp.code, response: resp, data: {} });
|
||||
}
|
||||
|
||||
return resp;
|
||||
|
|
|
@ -10,8 +10,8 @@ export const get = async () => {
|
|||
method: "GET",
|
||||
});
|
||||
|
||||
if (resp.status != 0 && resp.status !== 200) {
|
||||
throw new ClientResponseError({ status: resp.status, response: resp, data: {} });
|
||||
if (resp.code != 0) {
|
||||
throw new ClientResponseError({ status: resp.code, response: resp, data: {} });
|
||||
}
|
||||
|
||||
return resp.data as Statistics;
|
||||
|
|
|
@ -15,8 +15,8 @@ export const run = async (id: string) => {
|
|||
},
|
||||
});
|
||||
|
||||
if (resp.status != 0 && resp.status !== 200) {
|
||||
throw new ClientResponseError({ status: resp.status, response: resp, data: {} });
|
||||
if (resp.code != 0) {
|
||||
throw new ClientResponseError({ status: resp.code, response: resp, data: {} });
|
||||
}
|
||||
|
||||
return resp;
|
||||
|
|
Loading…
Reference in New Issue