File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,17 @@ WOQLQuery.prototype.containsUpdate = function(json) {
66
66
if ( this . update_operators . indexOf ( json [ '@type' ] ) !== - 1 ) return true
67
67
if ( json [ 'consequent' ] && this . containsUpdate ( json [ 'consequent' ] ) ) return true
68
68
if ( json [ 'query' ] ) return this . containsUpdate ( json [ 'query' ] )
69
- if ( json [ 'query_list ' ] ) {
70
- for ( var i = 0 ; i < json [ 'query_list ' ] . length ; i ++ ) {
71
- if ( this . containsUpdate ( json [ 'query_list ' ] [ i ] ) ) return true
69
+ if ( json [ 'and ' ] ) {
70
+ for ( var i = 0 ; i < json [ 'and ' ] . length ; i ++ ) {
71
+ if ( this . containsUpdate ( json [ 'and ' ] [ i ] ) ) return true
72
72
}
73
73
}
74
+ if ( json [ 'or' ] ) {
75
+ for ( var i = 0 ; i < json [ 'or' ] . length ; i ++ ) {
76
+ if ( this . containsUpdate ( json [ 'or' ] [ i ] ) ) return true
77
+ }
78
+ }
79
+
74
80
return false
75
81
}
76
82
You can’t perform that action at this time.
0 commit comments