musora-content-services 2.134.4 → 2.134.5

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.134.5](https://github.com/railroadmedia/musora-content-services/compare/v2.134.4...v2.134.5) (2026-02-13)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **T3PS-2286:** lessons page lp lessons ([#813](https://github.com/railroadmedia/musora-content-services/issues/813)) ([254b744](https://github.com/railroadmedia/musora-content-services/commit/254b7443fdd96dd9868349ab43a36220d1257a78))
11
+
5
12
  ### [2.134.4](https://github.com/railroadmedia/musora-content-services/compare/v2.134.3...v2.134.4) (2026-02-13)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.134.4",
3
+ "version": "2.134.5",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -575,8 +575,11 @@ export async function onContentCompletedLearningPathActions(
575
575
  export async function mapContentsThatWereLastProgressedFromMethod(objects: any[]) {
576
576
  if (!objects || objects.length === 0) return objects
577
577
 
578
- const contentIds = objects.map((obj) => obj.id) as number[]
579
- const trueIds = await getIdsWhereLastAccessedFromMethod(contentIds)
578
+ const validIds = objects
579
+ .filter((obj) => ['skill-pack-lesson', 'song-tutorial-lesson'].includes(obj.type))
580
+ .map((obj) => obj.id) as number[]
581
+
582
+ const trueIds = await getIdsWhereLastAccessedFromMethod(validIds)
580
583
 
581
584
  if (trueIds.length === 0) return objects
582
585
 
@@ -250,8 +250,9 @@ export default class ProgressRepository extends SyncRepository<ContentProgress>
250
250
  Q.where('collection_id', COLLECTION_ID_SELF),
251
251
  Q.where('last_interacted_a_la_carte', Q.notEq(null)),
252
252
  ),
253
- Q.and( // learning paths (parents AND lessons)
253
+ Q.and( // learning paths (parents)
254
254
  Q.where('collection_type', COLLECTION_TYPE.LEARNING_PATH),
255
+ Q.where('content_id', Q.eq(Q.column('collection_id')))
255
256
  )
256
257
  )
257
258