From 2ceaca4547fdde27023b9c2e274abae859b0b909 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 9 Nov 2023 07:05:55 +0000 Subject: [PATCH] Update p/server.js --- p/server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/p/server.js b/p/server.js index ebce6214..d92c9781 100644 --- a/p/server.js +++ b/p/server.js @@ -104,6 +104,7 @@ app.get("/", (req, res) => { const apiUrls = [ "https://returnyoutubedislikeapi.com/votes?videoId=", + "https://prod-poketube.testing.poketube.fun/api?v=", ]; // Define a cache object @@ -141,9 +142,9 @@ const { fetch } = await import("undici") return; // Exit the loop if successful } catch (err) { // Log the error for this URL and continue to the next URL - res.json(`Error fetching data from ${apiUrl}: ${err.message}`); + console.log(`Error fetching data from ${apiUrl}: ${err.message}`); errors.push(err.message); - + return ""; } }