diff --git a/index.js b/index.js index e99965a..107fdaa 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,7 @@ async function fetch3CatFacts() { const uri = `${CAT_API_ENDPOINT}/facts/random?amount=${CAT_FACTS_COUNT}`; try { const response = await axios.get(uri); + console.log() return response.data.map(rep => rep.text); } catch { return null; @@ -49,7 +50,7 @@ async function fetchDaysOfPerCountry(country) { app.post('/', async (req, _res) => { const countryCode = req.body?.countryCode; - const [foxPicture, catFacts, holidays] = Promise.all([ + const [foxPicture, catFacts, holidays] = await Promise.all([ fetchFowImage(), fetch3CatFacts(), fetchDaysOfPerCountry(countryCode)