musora-content-services 1.0.37 → 1.0.38
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/package.json +1 -1
- package/src/services/sanity.js +3 -2
package/package.json
CHANGED
package/src/services/sanity.js
CHANGED
|
@@ -472,7 +472,7 @@ export async function fetchAll(brand, type, {
|
|
|
472
472
|
} = {}) {
|
|
473
473
|
let config = contentTypeConfig[type] ?? {};
|
|
474
474
|
let additionalFields = config?.fields ?? [];
|
|
475
|
-
let isGroupByOneToOne = (groupBy ? config?.relationships[groupBy]?.isOneToOne : false) ?? false;
|
|
475
|
+
let isGroupByOneToOne = (groupBy ? config?.relationships?.[groupBy]?.isOneToOne : false) ?? false;
|
|
476
476
|
const start = (page - 1) * limit;
|
|
477
477
|
const end = start + limit;
|
|
478
478
|
|
|
@@ -834,7 +834,8 @@ export async function fetchCourseOverview(id) {
|
|
|
834
834
|
"type": _type,
|
|
835
835
|
total_xp,
|
|
836
836
|
xp,
|
|
837
|
-
|
|
837
|
+
description,
|
|
838
|
+
resource,
|
|
838
839
|
"lessons": child[]->{
|
|
839
840
|
"id": railcontent_id,
|
|
840
841
|
title,
|