rethrow error out of promise

This commit is contained in:
2020-05-14 12:27:35 +02:00
parent 78f7eab33c
commit efa5205184

View File

@@ -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);
} }