musora-content-services 1.0.202 → 1.0.204

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.204](https://github.com/railroadmedia/musora-content-services/compare/v1.0.203...v1.0.204) (2024-12-01)
6
+
7
+ ### [1.0.203](https://github.com/railroadmedia/musora-content-services/compare/v1.0.202...v1.0.203) (2024-12-01)
8
+
5
9
  ### [1.0.202](https://github.com/railroadmedia/musora-content-services/compare/v1.0.201...v1.0.202) (2024-11-30)
6
10
 
7
11
  ### [1.0.201](https://github.com/railroadmedia/musora-content-services/compare/v1.0.200...v1.0.201) (2024-11-29)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.202",
3
+ "version": "1.0.204",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -113,9 +113,9 @@ export class FilterBuilder {
113
113
  } else if (!this.pullFutureContent) {
114
114
  this._andWhere(`published_on <= '${now}'`);
115
115
  } else {
116
- const date = new Date();
117
- const theFuture = new Date(date.setMonth(date.getMonth() + 18));
118
- this._andWhere(`published_on <= '${theFuture}'`);
116
+ // const date = new Date();
117
+ // const theFuture = new Date(date.setMonth(date.getMonth() + 18));
118
+ // this._andWhere(`published_on <= '${theFuture}'`);
119
119
  }
120
120
  return this;
121
121
  }
@@ -1094,7 +1094,7 @@ export async function fetchNextPreviousLesson(railcontentId) {
1094
1094
  * .catch(error => console.error(error));
1095
1095
  */
1096
1096
  export async function fetchLessonContent(railContentId) {
1097
- const filterParams = {isSingle: true};
1097
+ const filterParams = {isSingle: true, pullFutureContent: true};
1098
1098
  // Format changes made to the `fields` object may also need to be reflected in Musora-web-platform SanityGateway.php $fields object
1099
1099
  // Currently only for challenges and challenge lessons
1100
1100
  // If you're unsure, message Adrian, or just add them.
@@ -1943,7 +1943,7 @@ function buildRawQuery(
1943
1943
 
1944
1944
  async function buildQuery(
1945
1945
  baseFilter = '',
1946
- filterParams = {},
1946
+ filterParams = {pullFutureContent: false},
1947
1947
  fields = '...',
1948
1948
  {
1949
1949
  sortOrder = 'published_on desc',