musora-content-services 1.0.51 → 1.0.52

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.52](https://github.com/railroadmedia/musora-content-services/compare/v1.0.51...v1.0.52) (2024-08-23)
6
+
5
7
  ### [1.0.51](https://github.com/railroadmedia/musora-content-services/compare/v1.0.50...v1.0.51) (2024-08-23)
6
8
 
7
9
  ### [1.0.50](https://github.com/railroadmedia/musora-content-services/compare/v1.0.49...v1.0.50) (2024-08-23)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -483,7 +483,8 @@ export async function fetchAll(brand, type, {
483
483
  'difficulty',
484
484
  'difficulty_string',
485
485
  'web_url_path',
486
- 'published_on'];
486
+ 'published_on'
487
+ ];
487
488
 
488
489
  let fields = defaultFields.concat(additionalFields);
489
490
  let fieldsString = fields.join(',');
@@ -636,11 +637,13 @@ export async function fetchChildren(railcontentId) {
636
637
  */
637
638
  export async function fetchMethods(brand) {
638
639
  const query = `*[_type == 'learning-path' && brand == "drumeo"] {
639
- child_count,
640
640
  difficulty,
641
+ difficulty_string,
641
642
  "description": description[0].children[0].text,
642
643
  hide_from_recsys,
644
+ "image": thumbnail.asset->url,
643
645
  "instructors":instructor[]->name,
646
+ "lesson_count": child_count,
644
647
  length_in_seconds,
645
648
  permission,
646
649
  popularity,
@@ -648,7 +651,6 @@ export async function fetchMethods(brand) {
648
651
  railcontent_id,
649
652
  "slug": slug.current,
650
653
  status,
651
- "thumbnail": thumbnail.asset->url,
652
654
  "thumbnail_logo": logo_image_url.asset->url,
653
655
  title,
654
656
  total_xp,