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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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
- "description": description[0]->children[0]->text,
837
+ description,
838
+ resource,
838
839
  "lessons": child[]->{
839
840
  "id": railcontent_id,
840
841
  title,