musora-content-services 2.135.0 → 2.135.1

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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(rg:*)",
5
+ "Bash(npm run lint:*)"
6
+ ],
7
+ "deny": []
8
+ }
9
+ }
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.135.1](https://github.com/railroadmedia/musora-content-services/compare/v2.135.0...v2.135.1) (2026-02-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * stop normalizing object ([#827](https://github.com/railroadmedia/musora-content-services/issues/827)) ([82d10d6](https://github.com/railroadmedia/musora-content-services/commit/82d10d6ab9fa45cdffe0cee607fe769ec8f1d53e))
11
+
5
12
  ## [2.135.0](https://github.com/railroadmedia/musora-content-services/compare/v2.134.8...v2.135.0) (2026-02-18)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.135.0",
3
+ "version": "2.135.1",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -537,7 +537,7 @@ async function saveContentProgress(contentId, collection, progress, currentSecon
537
537
  }
538
538
 
539
539
  if (Object.keys(bubbledProgresses).length > 0) {
540
- await db.contentProgress.recordProgressMany(normalizeContentIds(bubbledProgresses), normalizeCollection(collection), {skipPush: true, fromLearningPath})
540
+ await db.contentProgress.recordProgressMany(bubbledProgresses, normalizeCollection(collection), {skipPush: true, fromLearningPath})
541
541
  }
542
542
 
543
543
  if (isLP) {
@@ -605,7 +605,7 @@ async function setStartedOrCompletedStatusMany(contentIds, collection, isComplet
605
605
  }
606
606
 
607
607
  const contents = Object.fromEntries(contentIds.map((id) => [id, progress]))
608
- const response = await db.contentProgress.recordProgressMany(normalizeContentIds(contents), normalizeCollection(collection), {skipPush: true})
608
+ const response = await db.contentProgress.recordProgressMany(contents, normalizeCollection(collection), {skipPush: true})
609
609
 
610
610
  // we assume this is used only for contents within the same hierarchy
611
611
  const hierarchy = await getHierarchy(collection.id, collection)
@@ -780,7 +780,7 @@ async function bubbleAndTrickleProgressesSafely(progresses, collection) {
780
780
  Object.entries(progresses).filter(([_, pct]) => pct > 0)
781
781
  )
782
782
  if (Object.keys(progresses).length > 0) {
783
- await db.contentProgress.recordProgressMany(normalizeContentIds(progresses), normalizeCollection(collection), {skipPush: true})
783
+ await db.contentProgress.recordProgressMany(progresses, normalizeCollection(collection), {skipPush: true})
784
784
  }
785
785
  if (Object.keys(eraseProgresses).length > 0) {
786
786
  const eraseIds = Object.keys(eraseProgresses).map(Number)