musora-content-services 1.0.213 → 1.0.214
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 +2 -0
- package/package.json +1 -1
- package/src/services/sanity.js +2 -2
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.214](https://github.com/railroadmedia/musora-content-services/compare/v1.0.213...v1.0.214) (2024-12-04)
|
|
6
|
+
|
|
5
7
|
### [1.0.213](https://github.com/railroadmedia/musora-content-services/compare/v1.0.212...v1.0.213) (2024-12-04)
|
|
6
8
|
|
|
7
9
|
### [1.0.212](https://github.com/railroadmedia/musora-content-services/compare/v1.0.211...v1.0.212) (2024-12-03)
|
package/package.json
CHANGED
package/src/services/sanity.js
CHANGED
|
@@ -567,7 +567,7 @@ export async function fetchAll(brand, type, {
|
|
|
567
567
|
${groupBy}
|
|
568
568
|
}[0...20]
|
|
569
569
|
`;
|
|
570
|
-
filter = `_type == '${groupBy}' && count(*[${
|
|
570
|
+
filter = `_type == '${groupBy}' && count(*[${lessonsFilterWithRestrictions}]._id) > 0`;
|
|
571
571
|
} else if (groupBy !== "") {
|
|
572
572
|
const webUrlPath = (groupBy == 'genre') ? '/genres' : '';
|
|
573
573
|
const lessonsFilter = `brand == '${brand}' && ^._id in ${groupBy}[]._ref ${typeFilter} ${searchFilter} ${includedFieldsFilter} ${progressFilter} ${customFilter}`;
|
|
@@ -584,7 +584,7 @@ export async function fetchAll(brand, type, {
|
|
|
584
584
|
${fieldsString},
|
|
585
585
|
${groupBy}
|
|
586
586
|
}[0...20]`;
|
|
587
|
-
filter = `_type == '${groupBy}' && count(*[${
|
|
587
|
+
filter = `_type == '${groupBy}' && count(*[${lessonsFilterWithRestrictions}]._id) > 0`;
|
|
588
588
|
} else {
|
|
589
589
|
filter = `brand == "${brand}" ${typeFilter} ${searchFilter} ${includedFieldsFilter} ${progressFilter} ${customFilter}`
|
|
590
590
|
entityFieldsString = fieldsString;
|