rethrow error out of promise
This commit is contained in:
@@ -36,8 +36,8 @@ const bondFetchProcess = async (url) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fetchBondData = async () => {
|
const fetchBondData = async () => {
|
||||||
await bondFetchProcess(lowbonds);
|
await bondFetchProcess(lowbonds).catch((e) => { throw e });
|
||||||
await bondFetchProcess(highbonds);
|
await bondFetchProcess(highbonds).catch((e) => { throw e });
|
||||||
setTimeout(fetchBondData, 450000);
|
setTimeout(fetchBondData, 450000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user