musora-content-services 2.3.8 → 2.3.9

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,8 @@
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.3.9](https://github.com/railroadmedia/musora-content-services/compare/v2.3.8...v2.3.9) (2025-04-08)
6
+
5
7
  ### [2.3.8](https://github.com/railroadmedia/musora-content-services/compare/v2.3.7...v2.3.8) (2025-04-08)
6
8
 
7
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.d.ts CHANGED
File without changes
package/src/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -345,15 +345,18 @@ export async function deletePracticeSession(day) {
345
345
  if (!userPracticesIds.length) return [];
346
346
 
347
347
  const url = `/api/user/practices/v1/practices${buildQueryString(userPracticesIds)}`;
348
- await userActivityContext.update(async function (localContext) {
349
- if (localContext.data?.[DATA_KEY_PRACTICES]?.[day]) {
350
- localContext.data[DATA_KEY_PRACTICES][day] = localContext.data[DATA_KEY_PRACTICES][day].filter(
351
- practice => !userPracticesIds.includes(practice.id)
352
- );
348
+ await userActivityContext.update(
349
+ async function (localContext) {
350
+ if (localContext.data?.[DATA_KEY_PRACTICES]?.[day]) {
351
+ localContext.data[DATA_KEY_PRACTICES][day] = localContext.data[DATA_KEY_PRACTICES][day].filter(
352
+ practice => !userPracticesIds.includes(practice.id)
353
+ );
354
+ }
355
+ },
356
+ async function () {
357
+ return await fetchHandler(url, 'DELETE', null);
353
358
  }
354
- });
355
-
356
- return await fetchHandler(url, 'DELETE', null);
359
+ );
357
360
  }
358
361
 
359
362
  export async function restorePracticeSession(date) {