fix: enforce global rate limit in jikan client and handle relation errors

This commit is contained in:
2026-04-08 16:27:10 +02:00
parent e31ac4b148
commit 704ae49b3c
4 changed files with 62 additions and 26 deletions

View File

@@ -57,7 +57,7 @@ func (s *Service) GetAnimeDetails(ctx context.Context, id int, userID string) (j
return anime, currentStatus, nil
}
func (s *Service) GetRelations(id int) []jikan.RelationEntry {
func (s *Service) GetRelations(id int) ([]jikan.RelationEntry, error) {
return s.jikanClient.GetFullRelations(id)
}