musora-content-services 1.4.12 → 1.5.0
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 +9 -0
- package/package.json +1 -1
- package/src/services/sanity.js +5 -3
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
|
+
## [1.5.0](https://github.com/railroadmedia/musora-content-services/compare/v1.4.13...v1.5.0) (2025-06-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **BEH-459:** allow dark/light logos for courses ([#265](https://github.com/railroadmedia/musora-content-services/issues/265)) ([bfe95af](https://github.com/railroadmedia/musora-content-services/commit/bfe95af8c0e62d7927085fa25c9039dea98ae7e0))
|
|
11
|
+
|
|
12
|
+
### [1.4.13](https://github.com/railroadmedia/musora-content-services/compare/v1.4.12...v1.4.13) (2025-05-27)
|
|
13
|
+
|
|
5
14
|
### [1.4.12](https://github.com/railroadmedia/musora-content-services/compare/v1.4.11...v1.4.12) (2025-05-15)
|
|
6
15
|
|
|
7
16
|
### [1.4.11](https://github.com/railroadmedia/musora-content-services/compare/v1.4.10...v1.4.11) (2025-04-30)
|
package/package.json
CHANGED
package/src/services/sanity.js
CHANGED
|
@@ -1225,7 +1225,10 @@ export async function fetchLessonContent(railContentId) {
|
|
|
1225
1225
|
"id":railcontent_id,
|
|
1226
1226
|
slug, artist->,
|
|
1227
1227
|
"thumbnail_url":thumbnail.asset->url,
|
|
1228
|
-
"url": web_url_path,
|
|
1228
|
+
"url": web_url_path,
|
|
1229
|
+
"logo_image_url": logo_image_url.asset->url,
|
|
1230
|
+
"dark_logo": dark_mode_logo_url.asset->url,
|
|
1231
|
+
"light_logo": light_mode_logo_url.asset->url,
|
|
1229
1232
|
soundslice_slug,
|
|
1230
1233
|
"description": description[0].children[0].text,
|
|
1231
1234
|
"chapters": chapter[]{
|
|
@@ -1968,9 +1971,8 @@ function needsAccessDecorator(results, userPermissions, isAdmin) {
|
|
|
1968
1971
|
result.lessons.forEach((lesson) => {
|
|
1969
1972
|
lesson['need_access'] = doesUserNeedAccessToContent(lesson, userPermissions, isAdmin) // Updated to check lesson access
|
|
1970
1973
|
})
|
|
1971
|
-
} else {
|
|
1972
|
-
result['need_access'] = doesUserNeedAccessToContent(result, userPermissions, isAdmin)
|
|
1973
1974
|
}
|
|
1975
|
+
result['need_access'] = doesUserNeedAccessToContent(result, userPermissions, isAdmin)
|
|
1974
1976
|
})
|
|
1975
1977
|
} else if (results.related_lessons && Array.isArray(results.related_lessons)) {
|
|
1976
1978
|
results.related_lessons.forEach((result) => {
|