Skip to content

Commit ac6da9d

Browse files
Missed some update logic
1 parent afe6288 commit ac6da9d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/query/woqlCore.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,17 @@ WOQLQuery.prototype.containsUpdate = function(json) {
6666
if (this.update_operators.indexOf(json['@type']) !== -1) return true
6767
if (json['consequent'] && this.containsUpdate(json['consequent'])) return true
6868
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
7272
}
7373
}
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+
7480
return false
7581
}
7682

0 commit comments

Comments
 (0)