musora-content-services 2.111.2 → 2.111.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,15 @@
|
|
|
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.111.4](https://github.com/railroadmedia/musora-content-services/compare/v2.111.3...v2.111.4) (2026-01-07)
|
|
6
|
+
|
|
7
|
+
### [2.111.3](https://github.com/railroadmedia/musora-content-services/compare/v2.111.2...v2.111.3) (2026-01-06)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* change js import to ts ([#683](https://github.com/railroadmedia/musora-content-services/issues/683)) ([1285cbe](https://github.com/railroadmedia/musora-content-services/commit/1285cbee851a3a2c68a0e36f37909e67173f82b8))
|
|
13
|
+
|
|
5
14
|
### [2.111.2](https://github.com/railroadmedia/musora-content-services/compare/v2.111.1...v2.111.2) (2026-01-06)
|
|
6
15
|
|
|
7
16
|
|
package/package.json
CHANGED
|
@@ -433,10 +433,10 @@ async function trackPractice(contentId, secondsPlayed, prevSession, details = {}
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
async function trackProgress(contentId, collection, currentSeconds, mediaLengthSeconds) {
|
|
436
|
-
const progress = Math.min(
|
|
436
|
+
const progress = Math.max(1, Math.min(
|
|
437
437
|
99,
|
|
438
438
|
Math.round(((currentSeconds ?? 0) / Math.max(1, mediaLengthSeconds)) * 100)
|
|
439
|
-
)
|
|
439
|
+
))
|
|
440
440
|
return saveContentProgress(contentId, collection, progress, currentSeconds)
|
|
441
441
|
}
|
|
442
442
|
|
|
@@ -14,7 +14,7 @@ import { fetchByRailContentIds } from '../sanity.js'
|
|
|
14
14
|
import { addContextToContent } from '../contentAggregator.js'
|
|
15
15
|
import { fetchPlaylist } from '../content-org/playlists.js'
|
|
16
16
|
import { TabResponseType } from '../../contentMetaData.js'
|
|
17
|
-
import { PUT } from '../../infrastructure/http/HttpClient.
|
|
17
|
+
import { PUT } from '../../infrastructure/http/HttpClient.ts'
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
/**
|