Skip to content

Commit

Permalink
fixed validate or clause logic
Browse files Browse the repository at this point in the history
  • Loading branch information
YourTechBud committed Oct 28, 2020
1 parent 0234067 commit b80d39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/utils/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func Validate(where map[string]interface{}, obj interface{}) bool {
continue
}

if k == "$or" {
if strings.HasPrefix(k, "$or") {
array, ok := temp.([]interface{})
if !ok {
return false
Expand Down

0 comments on commit b80d39e

Please sign in to comment.