sqlquerybuilder
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -14,3 +14,3 @@ module.exports = function pagingAndLists(self) { | ||
self.processListRequest = function processListRequest(reqquery) { | ||
self.processListRequest = function processListRequest(reqquery, defaultSort) { | ||
if(reqquery.query){ | ||
@@ -24,3 +24,3 @@ reqquery = reqquery.query; | ||
if (reqquery.sidx && reqquery.sord) { | ||
self.orderBy(reqquery.sidx, reqquery.sord); | ||
self.orderBy(reqquery.sidx || defaultSort, reqquery.sord); | ||
} | ||
@@ -27,0 +27,0 @@ if (reqquery.rows) { |
@@ -67,11 +67,10 @@ module.exports = function where(self) { | ||
var filter = filters[i]; | ||
// if(filter.charAt(0) === '('){ | ||
// filter = filter.substr(1); | ||
// } | ||
// if(filter.lastIndexOf(')') === filter.length -1) { filter = filter.substr(0,filter.length-1);} | ||
if (filter.indexOf('.DisplayName') !== -1) { | ||
filter = filter.replace(/\b.DisplayName/ig, "DisplayName"); | ||
} | ||
if (filter.indexOf('.Value') !== -1) { | ||
filter = filter.replace(/\b.Value/ig, "Value"); | ||
} | ||
@@ -78,0 +77,0 @@ // IsActive |
{ | ||
"name": "sqlquerybuilder", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "Highly opinionated Sql Server Query Writer, mostly for internal use.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
181422
3851