musora-content-services 2.136.0 → 2.136.2
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 +4 -0
- package/package.json +1 -1
- package/publish.sh +1 -1
- package/src/services/sanity.js +3 -3
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
|
+
### [2.136.2](https://github.com/railroadmedia/musora-content-services/compare/v2.136.1...v2.136.2) (2026-02-19)
|
|
6
|
+
|
|
7
|
+
### [2.136.1](https://github.com/railroadmedia/musora-content-services/compare/v2.136.0...v2.136.1) (2026-02-19)
|
|
8
|
+
|
|
5
9
|
## [2.136.0](https://github.com/railroadmedia/musora-content-services/compare/v2.135.3...v2.136.0) (2026-02-19)
|
|
6
10
|
|
|
7
11
|
|
package/package.json
CHANGED
package/publish.sh
CHANGED
package/src/services/sanity.js
CHANGED
|
@@ -1496,13 +1496,13 @@ export async function fetchSanity(
|
|
|
1496
1496
|
if (result.result) {
|
|
1497
1497
|
let results = isList ? result.result : result.result[0]
|
|
1498
1498
|
if (!results) {
|
|
1499
|
-
|
|
1499
|
+
return null
|
|
1500
1500
|
}
|
|
1501
1501
|
results = processNeedAccess ? await needsAccessDecorator(results, userPermissions) : results
|
|
1502
1502
|
results = processPageType ? pageTypeDecorator(results) : results
|
|
1503
1503
|
return customPostProcess ? customPostProcess(results) : results
|
|
1504
1504
|
} else {
|
|
1505
|
-
|
|
1505
|
+
return null
|
|
1506
1506
|
}
|
|
1507
1507
|
} catch (error) {
|
|
1508
1508
|
console.error('fetchSanity: Fetch error:', { error, query })
|
|
@@ -1656,7 +1656,7 @@ export async function fetchMetadata(brand, type, options = {}) {
|
|
|
1656
1656
|
export async function fetchChatAndLiveEnvent(brand, forcedId = null) {
|
|
1657
1657
|
const liveEvent =
|
|
1658
1658
|
forcedId !== null ? await fetchByRailContentIds([forcedId]) : [await fetchLiveEvent(brand)]
|
|
1659
|
-
if (liveEvent.length === 0 || (liveEvent.length === 1 && liveEvent[0]
|
|
1659
|
+
if (liveEvent.length === 0 || (liveEvent.length === 1 && !liveEvent[0])) {
|
|
1660
1660
|
return null
|
|
1661
1661
|
}
|
|
1662
1662
|
let url = `/content/live-chat?brand=${brand}`
|