@ckpack/pg-helper
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "@ckpack/pg-helper", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "A small helper of node-postgres can help you build queries more easily and safely", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -187,3 +187,3 @@ const symbolLiteral = Symbol('literal'); | ||
valueSql += paramFields.map((value, valueIndex) => { | ||
if (typeof param[value] === 'object' && symbolLiteral in param[value]) { | ||
if (param[value] && typeof param[value] === 'object' && param[value][symbolLiteral]) { | ||
ignoreCount += 1; | ||
@@ -190,0 +190,0 @@ return param[value][symbolLiteral]; |
33791