Skip to content

Commit 4f28ad4

Browse files
reinstated post for updates
1 parent e4d9224 commit 4f28ad4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/woql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,7 @@ WOQLQuery.prototype.uncleanArgument = function(operator, val, index, allArgs){
22762276
val = this.unclean(val, 'class');
22772277
}
22782278
else if(["select"].indexOf(operator) != -1){
2279-
if(val.substring(0, 2) == "v:") val = val.substring(2);
2279+
//if(val.substring(0, 2) == "v:") val = val.substring(2);
22802280
}
22812281
else if(["quad", "add_quad", "delete_quad", "add_triple", "delete_triple", "triple"].indexOf(operator) != -1){
22822282
switch(index){

lib/woqlClient.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ WOQLClient.prototype.getSchema = function (schurl, opts) {
158158
new URIError(ErrorMessage.getInvalidURIMessage(schurl, 'Get Schema'))
159159
);
160160
}
161-
// consoleco.log('schemaURL', this.connectionConfig.schemaURL());
162161
return this.dispatch(this.connectionConfig.schemaURL(), CONST.GET_SCHEMA, opts);
163162
};
164163

@@ -288,7 +287,7 @@ WOQLClient.prototype.deleteDocument = function (docurl, opts) {
288287
*
289288
* @param {string} qurl TerminusDB server URL or omitted (the current DB will be used)
290289
* @param {string} woql is a "woql query select statement"
291-
* @param {object} opts it can contents the API key (opts.key)
290+
* @param {object} opts can contain an API key (opts.key)
292291
*
293292
*/
294293
WOQLClient.prototype.select = function (qurl, woql, opts) {
@@ -323,7 +322,7 @@ WOQLClient.prototype.update = function (qurl, woql, opts) {
323322
let q = {'terminus:query' : JSON.stringify(woql), ...fileList};
324323

325324
q = this.addOptionsToWOQL(q, opts);
326-
return this.dispatch(this.connectionConfig.queryURL(), CONST.WOQL_SELECT, q);
325+
return this.dispatch(this.connectionConfig.queryURL(), CONST.WOQL_UPDATE, q);
327326
};
328327

329328
/**

0 commit comments

Comments
 (0)