musora-content-services 1.0.157 → 1.0.159

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,10 @@
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
+ ### [1.0.159](https://github.com/railroadmedia/musora-content-services/compare/v1.0.158...v1.0.159) (2024-11-08)
6
+
7
+ ### [1.0.158](https://github.com/railroadmedia/musora-content-services/compare/v1.0.157...v1.0.158) (2024-11-08)
8
+
5
9
  ### [1.0.157](https://github.com/railroadmedia/musora-content-services/compare/v1.0.156...v1.0.157) (2024-11-08)
6
10
 
7
11
  ### [1.0.156](https://github.com/railroadmedia/musora-content-services/compare/v1.0.155...v1.0.156) (2024-11-06)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.157",
3
+ "version": "1.0.159",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -248,7 +248,7 @@ async function fetchDataHandler(url, dataVersion, method = "get") {
248
248
  }
249
249
 
250
250
  async function postDataHandler(url, data) {
251
- return fetchHandler(url, 'post', data);
251
+ return fetchHandler(url, 'post', null, data);
252
252
  }
253
253
 
254
254
  export async function fetchHandler(url, method = "get", dataVersion = null, body = null) {
@@ -299,7 +299,7 @@ export async function fetchContentProgress(currentVersion) {
299
299
  }
300
300
 
301
301
  export async function postRecordWatchSession(contentId, mediaTypeId, mediaLengthSeconds, currentSeconds, secondsPlayed, sessionId) {
302
- let url = `/v2/railtracker/media-playback-session`;
302
+ let url = `/railtracker/v2/media-playback-session`;
303
303
  return postDataHandler(url, {
304
304
  "content_id": contentId,
305
305
  "media_type_id": mediaTypeId,