@wmfs/pg-model
Advanced tools
Comparing version 1.28.0 to 1.28.1
@@ -0,1 +1,8 @@ | ||
## [1.28.1](https://github.com/wmfs/pg-model/compare/v1.28.0...v1.28.1) (2021-11-25) | ||
### 🐛 Bug Fixes | ||
* check fields is not empty array ([4d1387e](https://github.com/wmfs/pg-model/commit/4d1387e0fdb2bb177fd20233490cf83ddefbaac3)) | ||
# [1.28.0](https://github.com/wmfs/pg-model/compare/v1.27.0...v1.28.0) (2021-11-25) | ||
@@ -2,0 +9,0 @@ |
@@ -92,3 +92,3 @@ 'use strict' | ||
createSqlSelect (options) { | ||
const filter = Array.isArray(options.fields) | ||
const filter = Array.isArray(options.fields) && options.fields.length | ||
? ([col, prop]) => options.fields.includes(prop) | ||
@@ -95,0 +95,0 @@ : () => true |
{ | ||
"name": "@wmfs/pg-model", | ||
"version": "1.28.0", | ||
"version": "1.28.1", | ||
"description": "Takes a relational database structure and returns model objects for noSQL-like abilities.", | ||
@@ -5,0 +5,0 @@ "author": "West Midlands Fire Service", |
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
177375