rez_core 1.1.7 → 1.1.8

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -368,7 +368,7 @@ export class FilterService {
368
368
  key: string,
369
369
  ) {
370
370
  if (Array.isArray(val) && val.length === 0) {
371
- return { query: `e.${attr}`, params: {} };
371
+ return { query: '1=1', params: {} };
372
372
  }
373
373
 
374
374
  if ((op === 'equal' || op === 'not_equal') && !Array.isArray(val)) {
@@ -380,13 +380,13 @@ export class FilterService {
380
380
  switch (op) {
381
381
  case 'equal':
382
382
  return {
383
- query: `e.${attr} IN (:${key})`, // ✅ use (:key)
383
+ query: `e.${attr} IN (:${key})`,
384
384
  params: { [key]: val },
385
385
  };
386
386
 
387
387
  case 'not_equal':
388
388
  return {
389
- query: `e.${attr} NOT IN (:${key})`, // ✅ use (:key)
389
+ query: `e.${attr} NOT IN (:${key})`,
390
390
  params: { [key]: val },
391
391
  };
392
392