fix undefined: question.DefaultLimit

This commit is contained in:
Dawid Wysokiński 2021-03-11 20:25:40 +01:00
parent 81900132ea
commit a1436e8df3
2 changed files with 4 additions and 3 deletions

View File

@ -48,7 +48,7 @@ func (r *queryResolver) Questions(
&question.FetchConfig{
Count: shouldCount(ctx),
Filter: filter,
Limit: utils.SafeIntPointer(limit, question.DefaultLimit),
Limit: utils.SafeIntPointer(limit, question.FetchDefaultLimit),
Offset: utils.SafeIntPointer(offset, 0),
Sort: sort,
},

View File

@ -1,6 +1,7 @@
package question
const (
FetchMaxLimit = 500
TestMaxLimit = 40
FetchDefaultLimit = 100
FetchMaxLimit = 500
TestMaxLimit = 40
)