Skip to content

Commit

Permalink
Merge pull request #9 from subash25/patch-1
Browse files Browse the repository at this point in the history
Update rsql-mongodb.js
  • Loading branch information
Fizcko authored Aug 30, 2022
2 parents 6c37efc + 2cf149e commit 447e4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rsql-mongodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module.exports = function (input) {
}

// Push all operator presents in the parenthesis into 'outputTab'
while(logicalsTab[logicalsTab.length - 1] !== "(") {
while(logicalsTab.length > 0 && logicalsTab[logicalsTab.length - 1] !== "(") {
outputTab.push(logicalsTab.pop());
}

Expand Down Expand Up @@ -304,4 +304,4 @@ module.exports = function (input) {

return mongoQuery[0] || null;

}
}

0 comments on commit 447e4a5

Please sign in to comment.