diff options
| author | A i j a Z <[email protected]> | 2023-10-22 20:44:11 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-22 22:14:11 +0700 |
| commit | 2389d9a36f24d3cac42e561fbe11743da0c051d6 (patch) | |
| tree | 941ae42989bac619352034c3e61fdfcbf6baa2ad /pages/api/v2/etc | |
| parent | Update v4.2.0 (#93) (diff) | |
| download | moopa-2389d9a36f24d3cac42e561fbe11743da0c051d6.tar.xz moopa-2389d9a36f24d3cac42e561fbe11743da0c051d6.zip | |
fixed redis (#94)
* fixed schedules
* fixed redis
Diffstat (limited to 'pages/api/v2/etc')
| -rw-r--r-- | pages/api/v2/etc/schedule/index.js | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |