ismx-nexo-node-app 0.4.56 → 0.4.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -229,7 +229,7 @@ class RepositoryDatabasePostgres extends RepositoryDatabase_1.default {
229
229
  let values = [];
230
230
  for (let [key, value] of elements) {
231
231
  let colum = PostgresUtils_1.default.camelToSnake(key);
232
- if (key !== "id" && !columns.includes(colum))
232
+ if (key !== "id" && !columns.includes(colum.replace(/"/g, '')))
233
233
  continue;
234
234
  if (alias !== "")
235
235
  alias += ".";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.4.56",
3
+ "version": "0.4.57",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -202,7 +202,7 @@ export default class RepositoryDatabasePostgres extends RepositoryDatabase
202
202
 
203
203
  for (let [key, value] of elements) {
204
204
  let colum = PostgresUtils.camelToSnake(key)
205
- if (key !== "id" && !columns.includes(colum)) continue;
205
+ if (key !== "id" && !columns.includes(colum.replace(/"/g, ''))) continue;
206
206
  if (alias !== "") alias += "."
207
207
  if (value instanceof Array) where += ` AND ${alias}${colum} = ANY(\$${iter++})`
208
208
  else where += ` AND ${alias}${colum}=\$${iter++}`