musora-content-services 2.115.2 → 2.115.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
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
+ ### [2.115.3](https://github.com/railroadmedia/musora-content-services/compare/v2.115.2...v2.115.3) (2026-01-12)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Single lessons, Skill Packs and Entertainment tabs not display content and Courses display any content type ([9793443](https://github.com/railroadmedia/musora-content-services/commit/97934438bf8262fa27349eab562cecf1323c720a))
11
+
5
12
  ### [2.115.2](https://github.com/railroadmedia/musora-content-services/compare/v2.115.1...v2.115.2) (2026-01-09)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.115.2",
3
+ "version": "2.115.3",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -60,7 +60,7 @@ export class Tabs {
60
60
  static Collections = { name: 'Collections', short_name: 'Collections', value: 'type,collections', cardType: 'big' }
61
61
  static ExploreAll = { name: 'Explore All', short_name: 'Explore All', value: 'tab,explore all', icon: 'icon-filters', cardType: 'big'}
62
62
  static All = { name: 'All', short_name: 'All', value: '' }
63
- static Courses = { name: 'Courses', short_name: 'Courses', value: '' }
63
+ static Courses = { name: 'Courses', short_name: 'Courses', value: 'type,Courses' }
64
64
  static SkillLevel = { name: 'Skill Level', short_name: 'SKILL LEVEL', is_group_by: true, value: 'difficulty_string' }
65
65
  static Genres = { name: 'Genres', short_name: 'Genres', is_group_by: true, value: 'genre' }
66
66
  static Completed = { name: 'Completed', short_name: 'COMPLETED', is_group_by: false, value: 'completed' }
@@ -83,9 +83,9 @@ export class Tabs {
83
83
  static RecentActivityPosts = { name: 'Posts', short_name: 'Posts' }
84
84
  static RecentActivityComments = { name: 'Comments', short_name: 'Comments' }
85
85
  // new tabs - 29.10
86
- static SingleLessons = { name: 'Single Lessons', short_name: 'Single Lessons' }
87
- static SkillPacks = { name: 'Skill Packs', short_name: 'Skill Packs' }
88
- static Entertainment = { name: 'Entertainment', short_name: 'Entertainment' }
86
+ static SingleLessons = { name: 'Single Lessons', short_name: 'Single Lessons', value: 'type,Single Lessons' }
87
+ static SkillPacks = { name: 'Skill Packs', short_name: 'Skill Packs', value: 'type,Skill Packs' }
88
+ static Entertainment = { name: 'Entertainment', short_name: 'Entertainment', value: 'type,Entertainment' }
89
89
  }
90
90
 
91
91
  export const TabResponseType = {
@@ -94,10 +94,11 @@ export async function getTabResults(brand, pageName, tabName, {
94
94
  const filteredSelectedFilters = selectedFilters.filter(f => !f.startsWith('progress,'));
95
95
 
96
96
  // Prepare included fields
97
- const tabValue = Object.values(Tabs).find(
97
+ const tabMatch = Object.values(Tabs).find(
98
98
  tabObj => tabObj.name.toLowerCase() === tabName.toLowerCase()
99
- ).value
100
- const mergedIncludedFields = [...filteredSelectedFilters, tabValue];
99
+ )
100
+ const tabValue = tabMatch?.value || ''
101
+ const mergedIncludedFields = tabValue ? [...filteredSelectedFilters, tabValue] : filteredSelectedFilters;
101
102
 
102
103
  // Fetch data
103
104
  let results