consumet / api.consumet.org

A Modern Search Engine API for Anime, Movies/TVShows, Books, Light Novels, Manga, etc.
https://docs.consumet.org
GNU General Public License v3.0
1.11k stars 504 forks source link

gogoanime info api return empty when Redis not found #583

Closed detecto452 closed 6 months ago

detecto452 commented 6 months ago

Describe the bug

gogoanime info api return empty after recent commit

Steps to reproduce

It seems because there is no await keyword in /src/routes/anime/gogoanime.ts.

gogoanime.fetchAnimeInfo(id).catch((err) => reply.status(404).send({ message: err }));

should be modified as

await gogoanime.fetchAnimeInfo(id).catch((err) => reply.status(404).send({ message: err }));

Expected behavior

It should return anime info

Actual behavior

{}

Additional context

No response