musora-content-services 1.0.250 → 1.0.251
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 +2 -0
- package/package.json +1 -1
- package/src/services/sanity.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.251](https://github.com/railroadmedia/musora-content-services/compare/v1.0.250...v1.0.251) (2024-12-19)
|
|
6
|
+
|
|
5
7
|
### [1.0.250](https://github.com/railroadmedia/musora-content-services/compare/v1.0.249...v1.0.250) (2024-12-19)
|
|
6
8
|
|
|
7
9
|
### [1.0.249](https://github.com/railroadmedia/musora-content-services/compare/v1.0.247...v1.0.249) (2024-12-19)
|
package/package.json
CHANGED
package/src/services/sanity.js
CHANGED
|
@@ -542,6 +542,8 @@ export async function fetchAll(brand, type, {
|
|
|
542
542
|
if (type === 'archives') {
|
|
543
543
|
typeFilter = `&& status == "archived"`;
|
|
544
544
|
bypassStatusAndPublishedValidation = true;
|
|
545
|
+
} else if(type === 'pack'){
|
|
546
|
+
typeFilter = `&& (_type == 'pack' || _type == 'semester-pack')`;
|
|
545
547
|
} else {
|
|
546
548
|
typeFilter = type ? `&& _type == '${type}'` : "";
|
|
547
549
|
}
|