Skip to content

Commit b80d39e

Browse files
committedOct 28, 2020
fixed validate or clause logic
1 parent 0234067 commit b80d39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎gateway/utils/validate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func Validate(where map[string]interface{}, obj interface{}) bool {
6666
continue
6767
}
6868

69-
if k == "$or" {
69+
if strings.HasPrefix(k, "$or") {
7070
array, ok := temp.([]interface{})
7171
if !ok {
7272
return false

0 commit comments

Comments
 (0)
Please sign in to comment.