musora-content-services 2.94.3 → 2.94.4
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
|
+
### [2.94.4](https://github.com/railroadmedia/musora-content-services/compare/v2.94.3...v2.94.4) (2025-12-03)
|
|
6
|
+
|
|
5
7
|
### [2.94.3](https://github.com/railroadmedia/musora-content-services/compare/v2.94.2...v2.94.3) (2025-12-03)
|
|
6
8
|
|
|
7
9
|
|
package/package.json
CHANGED
|
@@ -244,17 +244,11 @@ export async function fetchLearningPathLessons(
|
|
|
244
244
|
* including other learning paths and a la carte progress.
|
|
245
245
|
*
|
|
246
246
|
* @param {number[]} contentIds The array of content IDs within the learning path
|
|
247
|
-
* @returns {Promise<
|
|
247
|
+
* @returns {Promise<number[]>} Array with completed content IDs
|
|
248
248
|
*/
|
|
249
|
-
export async function fetchLearningPathProgressCheckLessons(contentIds: number[]): Promise<
|
|
249
|
+
export async function fetchLearningPathProgressCheckLessons(contentIds: number[]): Promise<number[]> {
|
|
250
250
|
let query = await getAllCompletedByIds(contentIds)
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
return contentIds.reduce((obj, contentId) => {
|
|
254
|
-
let lessonIsCompleted = completedLessons.includes(contentId)
|
|
255
|
-
obj[contentId] = lessonIsCompleted ? STATE.COMPLETED : ""
|
|
256
|
-
return obj
|
|
257
|
-
}, {})
|
|
251
|
+
return query.data.map(lesson => lesson.content_id)
|
|
258
252
|
}
|
|
259
253
|
|
|
260
254
|
interface completeMethodIntroVideo {
|