From aa7e97ade88b639506ee964147969b193944602b Mon Sep 17 00:00:00 2001 From: urluur Date: Mon, 26 Aug 2024 17:45:43 +0200 Subject: [PATCH] typo for render get --- public/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app.js b/public/app.js index 70987e4..4acfe83 100644 --- a/public/app.js +++ b/public/app.js @@ -28,9 +28,11 @@ function getDepartures() { .then(data => { updateSite(data); }) - .catch(() => { // looks like we are on render + .catch(error => { + console.log(error); + console.log("Looks like we are on render"); axios.get('https://arriva-scraper.onrender.com/scrape?departure=' + departure + '&destination=' + arrival) - .then(response => response.json()) + .then(response => response.data) .then(data => { updateSite(data); })