Closed ksewo closed 3 years ago
Oh my, that's no good -- nice catch! I'll have this fixed up in the next patch. Thanks for contributing!
@Henry-Sarabia Thanks for looking into that.
For those who can't wait until next patch, here is temporary fix: Create your own versions of SetOffset and SetLimit. Example:
import (
"github.com/Henry-Sarabia/apicalypse"
"github.com/Henry-Sarabia/igdb/v2"
)
func SetOffset(offset int) igdb.Option {
return func() (apicalypse.Option, error) {
return apicalypse.Offset(offset), nil
}
}
SetLimit and SetOffset returns error if number higher than 5000 is provided.
There is no limit for offset for IGDB v4 API.
Limit also changed to 500 (not 5000 as in the code).
According to: https://api-docs.igdb.com/#pagination