Skip to content

Commit d45fdfc

Browse files
committed
fix woql
1 parent 5464428 commit d45fdfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/woql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ WOQLQuery.prototype.setPagingProperty = function(pageprop, val, q){
108108
WOQLQuery.prototype.addStart = function(val, q){
109109
q = (q ? q : this.query);
110110
for (const prop of Object.keys(q)) {
111-
if(prop == limit) {
111+
if(prop == "limit") {
112112
var nval = { "start": [0, q[prop][1]]}
113113
q[prop][1] = nval;
114114
}

lib/woqlClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const UTILS = require('./utils.js');
1818
function WOQLClient(params) {
1919
// current connection context variables
2020
const key = params ? params.key : undefined;
21-
this.use_fetch = false;
21+
this.use_fetch = true;
2222
this.return_full_response = false;
2323
this.connectionConfig = new ConnectionConfig(params);
2424
this.connection = new ConnectionCapabilities(this.connectionConfig, key);
@@ -400,7 +400,7 @@ WOQLClient.prototype.dispatch = function (url, action, payload) {
400400

401401
WOQLClient.prototype.dispatchFetch = function (url, action, payload) {
402402
const api = {
403-
mode: 'cors', // no-cors, cors, *same-origin
403+
//mode: 'cors', no-cors, cors, *same-origin
404404
redirect: 'follow', // manual, *follow, error
405405
referrer: 'client', // no-referrer, *client
406406
};

0 commit comments

Comments
 (0)