Skip to content

Commit e04c4ad

Browse files
committed
2 parents 81f93bb + 566e385 commit e04c4ad

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

lib/query/woqlPrinter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ WOQLPrinter.prototype.printArgument = function (operator, predicate, arg, level,
198198
str += reet;
199199
} else if (typeof arg === 'string') {
200200
str += this.uncleanArgument(arg, operator, predicate);
201-
}
201+
} else if (typeof arg === 'number') return arg;
202202
return str;
203203
};
204204

lib/woqlClient.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,6 @@ WOQLClient.prototype.getDocument = function (params, dbId, branch, lastDataVersi
12081208
delete params.query;
12091209
}
12101210
// if query we are send a get with a payload
1211-
// console.log(this.connectionConfig.documentURL(params));
12121211

12131212
if (queryDoc) {
12141213
return this.dispatch(
@@ -1476,15 +1475,17 @@ WOQLClient.prototype.getBranches = function (dbId) {
14761475

14771476
/**
14781477
* get the database collections list
1479-
* @param {string} [dbId] - the database id
1478+
* @param {number} [start=0] - where to start printing the commit
1479+
* information in the log (starting from the head of the current branch)
1480+
* @param {number} [count=1] - The number of total commit log records to return
14801481
* @returns {Promise} A promise that returns the call response object, or an Error if rejected.
14811482
* @example
1482-
* client.getCommitsLog()
1483-
*/
1484-
WOQLClient.prototype.getCommitsLog = function () {
1483+
* client.getCommitsLog(count=10)
1484+
*/
1485+
WOQLClient.prototype.getCommitsLog = function (start=0, count=1) {
14851486
return this.dispatch(
14861487
CONST.GET,
1487-
this.connectionConfig.log(),
1488+
this.connectionConfig.log() + `?start=${start}&count=${count}`,
14881489
);
14891490
};
14901491

package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)