ismx-nexo-node-app 0.4.66 → 0.4.67

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.
@@ -234,6 +234,8 @@ class RepositoryDatabasePostgres extends RepositoryDatabase_1.default {
234
234
  alias += ".";
235
235
  if (value instanceof Array)
236
236
  where += ` AND ${alias}${column} = ANY(\$${iter++})`;
237
+ else if (value === null)
238
+ where += ` AND ${alias}${column} IS \$${iter++}`;
237
239
  else
238
240
  where += ` AND ${alias}${column}=\$${iter++}`;
239
241
  values.push(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.4.66",
3
+ "version": "0.4.67",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -204,6 +204,7 @@ export default class RepositoryDatabasePostgres extends RepositoryDatabase
204
204
  if (value === undefined) continue;
205
205
  if (alias !== "") alias += "."
206
206
  if (value instanceof Array) where += ` AND ${alias}${column} = ANY(\$${iter++})`
207
+ else if (value === null) where += ` AND ${alias}${column} IS \$${iter++}`
207
208
  else where += ` AND ${alias}${column}=\$${iter++}`
208
209
  values.push(value);
209
210
  }