ShokoAnime / ShokoServer

Repository for Shoko Server.
http://shokoanime.com/shoko-server/
MIT License
376 stars 74 forks source link

Resolves searches returning null #1059

Closed fearnlj01 closed 1 year ago

fearnlj01 commented 1 year ago

I've tested these changes using the /api/v3/Series/AniDB/Search endpoint and it seems to get things working.

Given that the initial values for current.Distance & current.Index were always null-coalesced to int.MaxValue, result.Distance & index would always be less and as such the initial null value was always returned as the search result.