Skip to content

Commit

Permalink
fix parseSelectSequence with callback (#109)
Browse files Browse the repository at this point in the history
* fix parseSelectSequence with callback

* 2.5.29
  • Loading branch information
kbarbounakis authored Oct 11, 2024
1 parent 458342f commit fe78c9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions odata.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ OpenDataParser.prototype.atStart = function() {

OpenDataParser.prototype.parseSelectSequence = function(str, callback) {
return this.parseSelectSequenceAsync(str).then(function(results) {
return callback(results);
return callback(null, results);
}).catch(function(err) {
return callback(err);
});
Expand Down Expand Up @@ -417,11 +417,8 @@ OpenDataParser.prototype.parseExpandItem = function() {
}

OpenDataParser.prototype.parseOrderBySequence = function(str, callback) {
callback = callback || function () {
//
};
return this.parseOrderBySequenceAsync(str).then(function(results) {
return callback(results);
return callback(null, results);
}).catch(function(err) {
return callback(err);
});
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@themost/query",
"version": "2.5.28",
"version": "2.5.29",
"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.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit fe78c9e

Please sign in to comment.