Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
fixed schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
Aijazmakerb committed Oct 20, 2023
1 parent 0f3c6f6 commit e11decd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pages/api/v2/etc/schedule/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e11decd

Please sign in to comment.