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