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:
walker-16 2023-04-25 14:50:44 -03:00 committed by GitHub
parent c9bd4e0dbe
commit 3ea4603baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1235,7 +1235,7 @@ func (r *Repository) GetGovernorLimit(
}
// decodes to RawDocRecord.
var governorLimits []*GovernorLimit
governorLimits := []*GovernorLimit{}
err = cur.All(ctx, &governorLimits)
if err != nil {
requestID := fmt.Sprintf("%v", ctx.Value("requestid"))