mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-16 09:29:52 +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) {
|
if (resp.code != 0) {
|
||||||
throw new ClientResponseError({ status: resp.status, response: resp, data: {} });
|
throw new ClientResponseError({ status: resp.code, response: resp, data: {} });
|
||||||
}
|
}
|
||||||
|
|
||||||
return resp;
|
return resp;
|
||||||
|
@ -10,8 +10,8 @@ export const get = async () => {
|
|||||||
method: "GET",
|
method: "GET",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (resp.status != 0 && resp.status !== 200) {
|
if (resp.code != 0) {
|
||||||
throw new ClientResponseError({ status: resp.status, response: resp, data: {} });
|
throw new ClientResponseError({ status: resp.code, response: resp, data: {} });
|
||||||
}
|
}
|
||||||
|
|
||||||
return resp.data as Statistics;
|
return resp.data as Statistics;
|
||||||
|
@ -15,8 +15,8 @@ export const run = async (id: string) => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (resp.status != 0 && resp.status !== 200) {
|
if (resp.code != 0) {
|
||||||
throw new ClientResponseError({ status: resp.status, response: resp, data: {} });
|
throw new ClientResponseError({ status: resp.code, response: resp, data: {} });
|
||||||
}
|
}
|
||||||
|
|
||||||
return resp;
|
return resp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user