musora-content-services 1.0.185 → 1.0.186

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.186](https://github.com/railroadmedia/musora-content-services/compare/v1.0.185...v1.0.186) (2024-11-28)
6
+
5
7
  ### [1.0.185](https://github.com/railroadmedia/musora-content-services/compare/v1.0.176...v1.0.185) (2024-11-27)
6
8
 
7
9
  ### [1.0.184](https://github.com/railroadmedia/musora-content-services/compare/v1.0.183...v1.0.184) (2024-11-25)
File without changes
package/docs/index.html CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.185",
3
+ "version": "1.0.186",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
File without changes
package/src/index.d.ts CHANGED
File without changes
package/src/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -1347,9 +1347,11 @@ export async function fetchByReference(brand, {
1347
1347
  const includedFieldsFilter = includedFields.length > 0
1348
1348
  ? includedFields.join(' && ')
1349
1349
  : "";
1350
+
1350
1351
  const filter = `brand == '${brand}' ${searchFilter} && references(*[${includedFieldsFilter}]._id)`;
1352
+ const filterWithRestrictions = await new FilterBuilder(filter).buildFilter();
1351
1353
  const query = buildEntityAndTotalQuery(
1352
- filter,
1354
+ filterWithRestrictions,
1353
1355
  fieldsString,
1354
1356
  {
1355
1357
  sortOrder: getSortOrder(sortOrder),
File without changes
File without changes