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.
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
|
@@ -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(
|
|
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(
|
|
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(
|
|
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)
|