From 2389d9a36f24d3cac42e561fbe11743da0c051d6 Mon Sep 17 00:00:00 2001 From: A i j a Z <72906651+Aijazmakerb@users.noreply.github.com> Date: Sun, 22 Oct 2023 20:44:11 +0530 Subject: fixed redis (#94) * fixed schedules * fixed redis --- pages/api/v2/etc/schedule/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pages/api/v2/etc/schedule/index.js') diff --git a/pages/api/v2/etc/schedule/index.js b/pages/api/v2/etc/schedule/index.js index 9b8f43d..2ddc82a 100644 --- a/pages/api/v2/etc/schedule/index.js +++ b/pages/api/v2/etc/schedule/index.js @@ -2,13 +2,11 @@ import axios from "axios"; import cron from "cron"; import { rateLimiterRedis, redis } from "@/lib/redis"; -const API_KEY = process.env.API_KEY; - // Function to fetch new data async function fetchData() { try { const { data } = await axios.get( - `https://api.anify.tv/schedule?apikey=${API_KEY}` + `https://api.anify.tv/schedule?fields=[id,coverImage,title,bannerImage]` ); return data; } catch (error) { -- cgit v1.2.3