rez_core 4.0.163 → 4.0.166
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.
package/package.json
CHANGED
|
@@ -359,17 +359,22 @@ export class FilterService {
|
|
|
359
359
|
Object.entries(queryParams).forEach(([key, value]) => {
|
|
360
360
|
if (!value) return;
|
|
361
361
|
|
|
362
|
+
// Always convert to string
|
|
363
|
+
const strValue = String(value);
|
|
364
|
+
|
|
362
365
|
if (key === 'attributeName' && queryParams['attributeValue']) {
|
|
363
|
-
const attrName =
|
|
364
|
-
const attrValue = queryParams['attributeValue'];
|
|
366
|
+
const attrName = strValue;
|
|
367
|
+
const attrValue = String(queryParams['attributeValue']);
|
|
368
|
+
|
|
365
369
|
baseWhere.push({
|
|
366
370
|
query: `e.${attrName} = :${attrName}`,
|
|
367
|
-
params: { [attrName]: attrValue },
|
|
371
|
+
params: { [attrName]: attrValue }, // <-- string
|
|
368
372
|
});
|
|
369
|
-
}
|
|
373
|
+
}
|
|
374
|
+
else if (key !== 'attributeValue') {
|
|
370
375
|
baseWhere.push({
|
|
371
376
|
query: `e.${key} = :${key}`,
|
|
372
|
-
params: { [key]:
|
|
377
|
+
params: { [key]: strValue }, // <-- string
|
|
373
378
|
});
|
|
374
379
|
}
|
|
375
380
|
});
|