ismx-nexo-node-app 0.4.58 → 0.4.59
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.
|
@@ -228,7 +228,7 @@ class RepositoryDatabasePostgres extends RepositoryDatabase_1.default {
|
|
|
228
228
|
let values = [];
|
|
229
229
|
for (let column of columns) {
|
|
230
230
|
let value = filters[PostgresUtils_1.default.snakeToCamel(column.replace(/"/g, ''))];
|
|
231
|
-
if (
|
|
231
|
+
if (value === undefined)
|
|
232
232
|
continue;
|
|
233
233
|
if (alias !== "")
|
|
234
234
|
alias += ".";
|
|
@@ -55,7 +55,7 @@ export default class RepositoryDatabasePostgres extends RepositoryDatabase {
|
|
|
55
55
|
[key: string]: Primitive | Array<Primitive>;
|
|
56
56
|
}, alias?: string, index?: number): {
|
|
57
57
|
where: string;
|
|
58
|
-
values: (string | number | Date | Primitive[] | null
|
|
58
|
+
values: (string | number | Date | Primitive[] | null)[];
|
|
59
59
|
};
|
|
60
60
|
private introspect;
|
|
61
61
|
}
|
package/package.json
CHANGED
|
@@ -201,7 +201,7 @@ export default class RepositoryDatabasePostgres extends RepositoryDatabase
|
|
|
201
201
|
|
|
202
202
|
for (let column of columns) {
|
|
203
203
|
let value = filters[PostgresUtils.snakeToCamel(column.replace(/"/g, ''))]
|
|
204
|
-
if (
|
|
204
|
+
if (value === undefined) continue;
|
|
205
205
|
if (alias !== "") alias += "."
|
|
206
206
|
if (value instanceof Array) where += ` AND ${alias}${column} = ANY(\$${iter++})`
|
|
207
207
|
else where += ` AND ${alias}${column}=\$${iter++}`
|