Closed detecto452 closed 6 months ago
gogoanime info api return empty after recent commit
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 }));
It should return anime info
{}
No response
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