Skip to content

Commit 63120c1

Browse files
Merge pull request #38 from fidelthomet/patch-2
Extend cleanObject() to handle booleans
2 parents 1d4991c + 5d994f8 commit 63120c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/query/woqlCore.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ WOQLQuery.prototype.cleanObject = function(o, t) {
308308
} else if (typeof o == 'object' && o) {
309309
if (o['@value']) obj['woql:datatype'] = o
310310
else return o
311+
} else if (typeof o == 'boolean') {
312+
t = t || 'xsd:boolean'
313+
obj['woql:datatype'] = this.jlt(o, t)
311314
}
312315
return obj
313316
}

0 commit comments

Comments
 (0)