Skip to content

Commit 6e4ab14

Browse files
adding fix for opt when called in lisp style
1 parent 7cf3db4 commit 6e4ab14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/woql.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ WOQLQuery.prototype.when = function(Query, Update){
474474

475475
WOQLQuery.prototype.opt = function(query){
476476
if(query){
477+
q = (query.json ? query.json() : q);
477478
this.cursor["opt"] = [query];
478479
}
479480
else {

0 commit comments

Comments
 (0)