musora-content-services 2.94.2 → 2.94.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.94.3](https://github.com/railroadmedia/musora-content-services/compare/v2.94.2...v2.94.3) (2025-12-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fallback for method card when no activ epath ([#610](https://github.com/railroadmedia/musora-content-services/issues/610)) ([8458d97](https://github.com/railroadmedia/musora-content-services/commit/8458d9754d293ae28cb134546305264e638c8bbd))
|
|
11
|
+
|
|
5
12
|
### [2.94.2](https://github.com/railroadmedia/musora-content-services/compare/v2.94.1...v2.94.2) (2025-12-03)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -11,8 +11,10 @@ import { COLLECTION_TYPE } from '../sync/models/ContentProgress'
|
|
|
11
11
|
export async function getMethodCard(brand) {
|
|
12
12
|
const introVideo = await fetchMethodV2IntroVideo(brand)
|
|
13
13
|
const introVideoProgressState = await getProgressState(introVideo?.id)
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
|
|
15
|
+
const activeLearningPath = await getActivePath(brand)
|
|
16
|
+
|
|
17
|
+
if (introVideoProgressState !== 'completed' || !activeLearningPath) {
|
|
16
18
|
//startLearningPath('drumeo', 422533)
|
|
17
19
|
const timestamp = Math.floor(Date.now() / 1000)
|
|
18
20
|
const instructorText =
|
|
@@ -37,7 +39,6 @@ export async function getMethodCard(brand) {
|
|
|
37
39
|
}
|
|
38
40
|
} else {
|
|
39
41
|
//TODO: Optimize loading of dailySessions/Path, should not need multiple requests
|
|
40
|
-
const activeLearningPath = await getActivePath(brand)
|
|
41
42
|
const learningPath = await fetchLearningPathLessons(
|
|
42
43
|
activeLearningPath.active_learning_path_id,
|
|
43
44
|
brand,
|