musora-content-services 1.0.94 → 1.0.96
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 +4 -0
- package/package.json +1 -1
- package/src/services/sanity.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.96](https://github.com/railroadmedia/musora-content-services/compare/v1.0.95...v1.0.96) (2024-09-12)
|
|
6
|
+
|
|
7
|
+
### [1.0.95](https://github.com/railroadmedia/musora-content-services/compare/v1.0.94...v1.0.95) (2024-09-12)
|
|
8
|
+
|
|
5
9
|
### [1.0.94](https://github.com/railroadmedia/musora-content-services/compare/v1.0.93...v1.0.94) (2024-09-12)
|
|
6
10
|
|
|
7
11
|
### [1.0.93](https://github.com/railroadmedia/musora-content-services/compare/v1.0.92...v1.0.93) (2024-09-11)
|
package/package.json
CHANGED
package/src/services/sanity.js
CHANGED
|
@@ -293,7 +293,7 @@ export async function fetchNewReleases(brand) {
|
|
|
293
293
|
* .then(events => console.log(events))
|
|
294
294
|
* .catch(error => console.error(error));
|
|
295
295
|
*/
|
|
296
|
-
export async function fetchUpcomingEvents(brand, { page = 1, limit = 10 }) {
|
|
296
|
+
export async function fetchUpcomingEvents(brand, { page = 1, limit = 10 }={}) {
|
|
297
297
|
const baseLiveTypes = ["student-review", "student-reviews", "student-focus", "coach-stream", "live", "question-and-answer", "student-review", "boot-camps", "recording", "pack-bundle-lesson"];
|
|
298
298
|
const liveTypes = {
|
|
299
299
|
'drumeo': [...baseLiveTypes, "drum-fest-international-2022", "spotlight", "the-history-of-electronic-drums", "backstage-secrets", "quick-tips", "student-collaborations", "live-streams", "podcasts", "solos", "gear-guides", "performances", "in-rhythm", "challenges", "on-the-road", "diy-drum-experiments", "rhythmic-adventures-of-captain-carson", "study-the-greats", "rhythms-from-another-planet", "tama-drums", "paiste-cymbals", "behind-the-scenes", "exploring-beats", "sonor-drums"],
|
|
@@ -442,6 +442,7 @@ export async function fetchAll(brand, type, {
|
|
|
442
442
|
'type': _type,
|
|
443
443
|
name,
|
|
444
444
|
'head_shot_picture_url': thumbnail_url.asset->url,
|
|
445
|
+
web_url_path,
|
|
445
446
|
'all_lessons_count': count(*[_type == '${type}' && brand == '${brand}' && ^._id == ${groupBy}._ref ${searchFilter} ${includedFieldsFilter} ${progressFilter}]._id),
|
|
446
447
|
'lessons': *[_type == '${type}' && brand == '${brand}' && ^._id == ${groupBy}._ref ${searchFilter} ${includedFieldsFilter} ${progressFilter}]{
|
|
447
448
|
${fieldsString},
|
|
@@ -461,6 +462,7 @@ export async function fetchAll(brand, type, {
|
|
|
461
462
|
'type': _type,
|
|
462
463
|
name,
|
|
463
464
|
'head_shot_picture_url': thumbnail_url.asset->url,
|
|
465
|
+
web_url_path,
|
|
464
466
|
'all_lessons_count': count(*[_type == '${type}' && brand == '${brand}' && ^._id in ${groupBy}[]._ref ${searchFilter} ${includedFieldsFilter} ${progressFilter}]._id),
|
|
465
467
|
'lessons': *[_type == '${type}' && brand == '${brand}' && ^._id in ${groupBy}[]._ref ${searchFilter} ${includedFieldsFilter} ${progressFilter}]{
|
|
466
468
|
${fieldsString},
|