fix undefined: question.DefaultLimit
This commit is contained in:
parent
81900132ea
commit
a1436e8df3
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package question
|
||||
|
||||
const (
|
||||
FetchMaxLimit = 500
|
||||
TestMaxLimit = 40
|
||||
FetchDefaultLimit = 100
|
||||
FetchMaxLimit = 500
|
||||
TestMaxLimit = 40
|
||||
)
|
||||
|
|
Reference in New Issue