Skip to content

Commit cfc9ae4

Browse files
fixed vocab, paged and getDocumentConnections
1 parent 61a1a05 commit cfc9ae4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/woql.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ WOQLQuery.prototype.documentProperties = function(id){
633633

634634
WOQLQuery.prototype.getDocumentConnections = function(id){
635635
return this.and(
636-
this.or(
636+
WOQL.or(
637637
WOQL.triple(id, "v:Outgoing", "v:Entid"),
638638
WOQL.triple("v:Entid", "v:Incoming", id)
639639
),
@@ -718,9 +718,10 @@ WOQLQuery.prototype.isPaged = function(q){
718718
for (const prop of Object.keys(q)) {
719719
if(prop == "limit") return true;
720720
else if(this.paging_transitive_properties.indexOf(prop) !== -1){
721-
return this.isPaged(q[prop][q[prop].length-1])
721+
return this.isPaged(q[prop][q[prop].length-1]);
722722
}
723723
}
724+
return false;
724725
}
725726

726727
WOQLQuery.prototype.getPage = function(){

0 commit comments

Comments
 (0)