musora-content-services 1.0.56 → 1.0.58

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 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
+ ### [1.0.58](https://github.com/railroadmedia/musora-content-services/compare/v1.0.57...v1.0.58) (2024-08-26)
6
+
7
+ ### [1.0.57](https://github.com/railroadmedia/musora-content-services/compare/v1.0.56...v1.0.57) (2024-08-26)
8
+
5
9
  ### [1.0.56](https://github.com/railroadmedia/musora-content-services/compare/v1.0.55...v1.0.56) (2024-08-26)
6
10
 
7
11
  ### [1.0.55](https://github.com/railroadmedia/musora-content-services/compare/v1.0.54...v1.0.55) (2024-08-26)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -649,7 +649,7 @@ export async function fetchMethods(brand) {
649
649
  length_in_seconds,
650
650
  permission,
651
651
  popularity,
652
- "position": count(*[_type == 'learning-path' && brand == '${brand}' && published_on <= ^.published_on]) - count(*[_type == 'learning-path' && brand == '${brand}' && published_on < ^.published_on]),
652
+ "position": count(*[_type == 'learning-path' && brand == '${brand}' && (published_on < ^.published_on || (published_on == ^.published_on && _id < ^._id))]) + 1,
653
653
  published_on,
654
654
  railcontent_id,
655
655
  "slug": slug.current,
@@ -658,7 +658,7 @@ export async function fetchMethods(brand) {
658
658
  title,
659
659
  total_xp,
660
660
  "type": _type,
661
- web_url_path,
661
+ "url": web_url_path,
662
662
  xp
663
663
  }`
664
664
  return fetchSanity(query, true);