musora-content-services 1.0.45 → 1.0.47

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.47](https://github.com/railroadmedia/musora-content-services/compare/v1.0.46...v1.0.47) (2024-08-22)
6
+
7
+ ### [1.0.46](https://github.com/railroadmedia/musora-content-services/compare/v1.0.45...v1.0.46) (2024-08-22)
8
+
5
9
  ### [1.0.45](https://github.com/railroadmedia/musora-content-services/compare/v1.0.44...v1.0.45) (2024-08-22)
6
10
 
7
11
  ### [1.0.44](https://github.com/railroadmedia/musora-content-services/compare/v1.0.43...v1.0.44) (2024-08-21)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -445,7 +445,12 @@ export async function fetchAll(brand, type, {
445
445
  let sortOrder;
446
446
  switch (sort) {
447
447
  case "slug":
448
- sortOrder = "title asc";
448
+ if(groupBy){
449
+ sortOrder = "name asc";
450
+ } else {
451
+ sortOrder = "title asc";
452
+ }
453
+
449
454
  break;
450
455
  case "published_on":
451
456
  sortOrder = "published_on asc";
@@ -454,7 +459,12 @@ export async function fetchAll(brand, type, {
454
459
  sortOrder = "published_on desc";
455
460
  break;
456
461
  case "-slug":
457
- sortOrder = "title desc";
462
+ if(groupBy){
463
+ sortOrder = "name desc";
464
+ } else {
465
+ sortOrder = "title desc";
466
+ }
467
+
458
468
  break;
459
469
  case "-popularity":
460
470
  sortOrder = "popularity desc";
@@ -626,6 +636,7 @@ export async function fetchMethods(brand) {
626
636
  length_in_seconds,
627
637
  permission,
628
638
  popularity,
639
+ published_on,
629
640
  railcontent_id,
630
641
  "slug": slug.current,
631
642
  status,