return empty array and not null in 200 empty repsonse governor limit … (#261)
return empty array and not null in 200 empty repsonse governor limit endpoint
This commit is contained in:
parent
c9bd4e0dbe
commit
3ea4603baf
|
@ -1235,7 +1235,7 @@ func (r *Repository) GetGovernorLimit(
|
||||||
}
|
}
|
||||||
|
|
||||||
// decodes to RawDocRecord.
|
// decodes to RawDocRecord.
|
||||||
var governorLimits []*GovernorLimit
|
governorLimits := []*GovernorLimit{}
|
||||||
err = cur.All(ctx, &governorLimits)
|
err = cur.All(ctx, &governorLimits)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
requestID := fmt.Sprintf("%v", ctx.Value("requestid"))
|
requestID := fmt.Sprintf("%v", ctx.Value("requestid"))
|
||||||
|
|
Loading…
Reference in New Issue