Skip to content

Commit fe78c9e

Browse files
authored
fix parseSelectSequence with callback (#109)
* fix parseSelectSequence with callback * 2.5.29
1 parent 458342f commit fe78c9e

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

odata.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ OpenDataParser.prototype.atStart = function() {
210210

211211
OpenDataParser.prototype.parseSelectSequence = function(str, callback) {
212212
return this.parseSelectSequenceAsync(str).then(function(results) {
213-
return callback(results);
213+
return callback(null, results);
214214
}).catch(function(err) {
215215
return callback(err);
216216
});
@@ -417,11 +417,8 @@ OpenDataParser.prototype.parseExpandItem = function() {
417417
}
418418

419419
OpenDataParser.prototype.parseOrderBySequence = function(str, callback) {
420-
callback = callback || function () {
421-
//
422-
};
423420
return this.parseOrderBySequenceAsync(str).then(function(results) {
424-
return callback(results);
421+
return callback(null, results);
425422
}).catch(function(err) {
426423
return callback(err);
427424
});

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@themost/query",
3-
"version": "2.5.28",
3+
"version": "2.5.29",
44
"description": "@themost/query is a query builder for SQL. It includes a wide variety of helper functions for building complex SQL queries under node.js.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)