Skip to content

Commit b65ea31

Browse files
Adding type_of fix
1 parent d3eb2e1 commit b65ea31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/query/woqlQuery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,8 @@ WOQLQuery.prototype.type_of = function (a, b) {
10701070
if (!a || !b) return this.parameterError('type_of takes two parameters, both values');
10711071
if (this.cursor['@type']) this.wrapCursorWithAnd();
10721072
this.cursor['@type'] = 'TypeOf';
1073-
this.cursor.value = this.cleanClass(a);
1074-
this.cursor.type = this.cleanClass(b);
1073+
this.cursor.value = this.cleanObject(a);
1074+
this.cursor.type = this.cleanSubject(b);
10751075
return this;
10761076
};
10771077

0 commit comments

Comments
 (0)