fixed GetAnimeListByAnimeID

This commit is contained in:
milarin 2023-01-18 10:25:07 +01:00
parent 6abd63d6e0
commit da15313c21

View File

@ -8,8 +8,8 @@ import (
"git.milar.in/nyaanime/model"
)
func GetAnimeListByAnimeID() (map[anilist.MediaID]*anilist.MediaList, error) {
animeListChannel, err := GetCurrentlyWatchingAnimes(AllMediaListStatuses...)
func GetAnimeListByAnimeID(statuses []anilist.MediaListStatus) (map[anilist.MediaID]*anilist.MediaList, error) {
animeListChannel, err := GetCurrentlyWatchingAnimes(statuses...)
if err != nil {
return nil, err
}