musora-content-services 1.3.20 → 1.3.21
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 +2 -0
- package/package.json +1 -1
- package/src/services/railcontent.js +1 -1
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
|
+
### [1.3.21](https://github.com/railroadmedia/musora-content-services/compare/v1.3.20...v1.3.21) (2025-03-21)
|
|
6
|
+
|
|
5
7
|
### [1.3.20](https://github.com/railroadmedia/musora-content-services/compare/v1.3.19...v1.3.20) (2025-03-21)
|
|
6
8
|
|
|
7
9
|
### [1.3.19](https://github.com/railroadmedia/musora-content-services/compare/v1.3.18...v1.3.19) (2025-03-18)
|
package/package.json
CHANGED
|
@@ -494,7 +494,7 @@ export async function fetchChallengeUserActiveChallenges(brand = null) {
|
|
|
494
494
|
export async function fetchCarouselCardData(brand = null) {
|
|
495
495
|
const urlParams = []
|
|
496
496
|
if (brand) urlParams.push(`brand=${brand}`)
|
|
497
|
-
if (globalConfig.sanityConfig.perspective === 'previewDrafts') urlParams.push(`
|
|
497
|
+
if (globalConfig.sanityConfig.perspective === 'previewDrafts') urlParams.push(`sanityPreview`)
|
|
498
498
|
const url = `/api/v2/content/carousel${urlParams.length ? `?${urlParams.join('&')}` : ''}`
|
|
499
499
|
return await fetchHandler(url, 'get')
|
|
500
500
|
}
|