musora-content-services 1.0.191 → 1.0.193
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 +4 -0
- package/package.json +1 -1
- package/src/services/sanity.js +4 -4
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.193](https://github.com/railroadmedia/musora-content-services/compare/v1.0.192...v1.0.193) (2024-11-28)
|
|
6
|
+
|
|
7
|
+
### [1.0.192](https://github.com/railroadmedia/musora-content-services/compare/v1.0.191...v1.0.192) (2024-11-28)
|
|
8
|
+
|
|
5
9
|
### [1.0.191](https://github.com/railroadmedia/musora-content-services/compare/v1.0.190...v1.0.191) (2024-11-28)
|
|
6
10
|
|
|
7
11
|
### [1.0.190](https://github.com/railroadmedia/musora-content-services/compare/v1.0.189...v1.0.190) (2024-11-28)
|
package/package.json
CHANGED
package/src/services/sanity.js
CHANGED
|
@@ -632,7 +632,7 @@ async function handleCustomFetchAll(brand, type, {
|
|
|
632
632
|
} = {}) {
|
|
633
633
|
if (type === 'challenge') {
|
|
634
634
|
if (groupBy === 'completed') {
|
|
635
|
-
const completedIds = fetchCompletedChallenges(brand, page, limit);
|
|
635
|
+
const completedIds = await fetchCompletedChallenges(brand, page, limit);
|
|
636
636
|
return fetchAll(brand, type,
|
|
637
637
|
{
|
|
638
638
|
page,
|
|
@@ -640,14 +640,14 @@ async function handleCustomFetchAll(brand, type, {
|
|
|
640
640
|
searchTerm,
|
|
641
641
|
sort,
|
|
642
642
|
includedFields,
|
|
643
|
-
groupBy,
|
|
643
|
+
groupBy: '',
|
|
644
644
|
completedIds,
|
|
645
645
|
useDefaultFields,
|
|
646
646
|
customFields,
|
|
647
647
|
progress
|
|
648
648
|
});
|
|
649
649
|
} else if (groupBy === 'owned') {
|
|
650
|
-
const ownedIds = fetchOwnedChallenges(brand, page, limit);
|
|
650
|
+
const ownedIds = await fetchOwnedChallenges(brand, page, limit);
|
|
651
651
|
return fetchAll(brand, type,
|
|
652
652
|
{
|
|
653
653
|
page,
|
|
@@ -655,7 +655,7 @@ async function handleCustomFetchAll(brand, type, {
|
|
|
655
655
|
searchTerm,
|
|
656
656
|
sort,
|
|
657
657
|
includedFields,
|
|
658
|
-
groupBy,
|
|
658
|
+
groupBy: '',
|
|
659
659
|
ownedIds,
|
|
660
660
|
useDefaultFields,
|
|
661
661
|
customFields,
|