From 55dd72f5f78d14764ccbc63da1237851e2456fc0 Mon Sep 17 00:00:00 2001 From: Pagos Date: Thu, 23 Nov 2023 18:21:09 +0100 Subject: [PATCH] Changed NEO API URL to fix #2306 --- src/core/utils/SpaceUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils/SpaceUtils.ts b/src/core/utils/SpaceUtils.ts index eaa17c672..a7abb7865 100644 --- a/src/core/utils/SpaceUtils.ts +++ b/src/core/utils/SpaceUtils.ts @@ -102,7 +102,7 @@ export class SpaceUtils { return Promise.resolve({length: this.cachedNeoFeed.length, near_earth_objects: this.cachedNeoFeed}); } return new Promise((resolve) => { - https.get(`https://api.nasa.gov/neo/rest/v1/feed?start_date=${today}&end_date=${today}&api_key=${apiKey}`, res => { + https.get(`https://www.neowsapp.com/rest/v1/feed/today?api_key=${apiKey}`, res => { let data = ""; res.on("data", chunk => { data += chunk;