mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-15 00:49:51 +00:00
fix: fix typo
This commit is contained in:
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…
x
Reference in New Issue
Block a user