av6-core 1.5.2 → 1.5.3

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/dist/index.js CHANGED
@@ -698,9 +698,9 @@ var commonRepository = (serviceDeps) => {
698
698
  }
699
699
  searchOR = transformData(searchOR);
700
700
  }
701
- const whereClause = { ...rootCondition };
702
- if (searchOR && searchOR.length > 0) {
703
- whereClause.OR = searchOR;
701
+ let whereClause = rootCondition;
702
+ if (searchOR?.length) {
703
+ whereClause = smartAndMerge(whereClause, { OR: searchOR });
704
704
  }
705
705
  const orderByClause = {};
706
706
  if (sortBy && sortDir) {
package/dist/index.mjs CHANGED
@@ -648,9 +648,9 @@ var commonRepository = (serviceDeps) => {
648
648
  }
649
649
  searchOR = transformData(searchOR);
650
650
  }
651
- const whereClause = { ...rootCondition };
652
- if (searchOR && searchOR.length > 0) {
653
- whereClause.OR = searchOR;
651
+ let whereClause = rootCondition;
652
+ if (searchOR?.length) {
653
+ whereClause = smartAndMerge(whereClause, { OR: searchOR });
654
654
  }
655
655
  const orderByClause = {};
656
656
  if (sortBy && sortDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "av6-core",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",