1
0
Fork 0

filter out failed requests

This commit is contained in:
Ryan Mwangi 2024-10-03 01:09:25 +03:00
parent 35b9284a7a
commit 9b297aa0fd
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ async function updateMergedCalendar(){
}); });
const results = await Promise.all(promises); const results = await Promise.all(promises);
// Filter out any failed requests
const validResults = results.filter((result) => result !== null);
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }