From fe78c9efd655a906294a13b6880304d3d499d143 Mon Sep 17 00:00:00 2001 From: Kyriakos Barbounakis Date: Fri, 11 Oct 2024 14:20:52 +0300 Subject: [PATCH] fix parseSelectSequence with callback (#109) * fix parseSelectSequence with callback * 2.5.29 --- odata.js | 7 ++----- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/odata.js b/odata.js index 4de9132..d3e20ba 100644 --- a/odata.js +++ b/odata.js @@ -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); }); @@ -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); }); diff --git a/package-lock.json b/package-lock.json index 489f62f..007098b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@themost/query", - "version": "2.5.28", + "version": "2.5.29", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@themost/query", - "version": "2.5.28", + "version": "2.5.29", "license": "BSD-3-Clause", "dependencies": { "@themost/events": "^1.0.5", diff --git a/package.json b/package.json index 11a25ee..8584d03 100644 --- a/package.json +++ b/package.json @@ -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": {