dt-common-device 13.4.13 → 13.4.14
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.
|
@@ -83,7 +83,15 @@ let ConnectionRepository = (() => {
|
|
|
83
83
|
// Build conditions dynamically based on provided query parameters
|
|
84
84
|
Object.keys(query).forEach((key) => {
|
|
85
85
|
const value = query[key];
|
|
86
|
-
if (value
|
|
86
|
+
if (value === undefined || value === null)
|
|
87
|
+
return;
|
|
88
|
+
// ✅ Special handling for metaData (JSON)
|
|
89
|
+
if (key === "metaData" && typeof value === "object") {
|
|
90
|
+
conditions.push(`"metaData" @> $${paramIndex}`);
|
|
91
|
+
values.push(JSON.stringify(value));
|
|
92
|
+
paramIndex++;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
87
95
|
conditions.push(`"${key}" = $${paramIndex}`);
|
|
88
96
|
values.push(value);
|
|
89
97
|
paramIndex++;
|