musora-content-services 1.0.17 → 1.0.19

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.19](https://github.com/railroadmedia/musora-content-services/compare/v1.0.18...v1.0.19) (2024-08-13)
6
+
7
+ ### [1.0.18](https://github.com/railroadmedia/musora-content-services/compare/v1.0.17...v1.0.18) (2024-08-13)
8
+
5
9
  ### [1.0.17](https://github.com/railroadmedia/musora-content-services/compare/v1.0.16...v1.0.17) (2024-08-13)
6
10
 
7
11
  ### [1.0.16](https://github.com/railroadmedia/musora-content-services/compare/v1.0.15...v1.0.16) (2024-08-13)
package/docs/global.html CHANGED
@@ -5330,7 +5330,7 @@ initializeSanityService({
5330
5330
  <br class="clear">
5331
5331
 
5332
5332
  <footer>
5333
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Aug 13 2024 18:37:07 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
5333
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Aug 13 2024 19:10:16 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
5334
5334
  </footer>
5335
5335
 
5336
5336
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -103,7 +103,7 @@ Run the following to execute the tests</p>
103
103
  <br class="clear">
104
104
 
105
105
  <footer>
106
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Aug 13 2024 18:37:07 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
106
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Aug 13 2024 19:10:16 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
107
107
  </footer>
108
108
 
109
109
  <script>prettyPrint();</script>
@@ -543,9 +543,9 @@ async function fetchLiveEvent(brand) {
543
543
  // Adjust the query to filter events based on the calculated time window
544
544
  const query = `
545
545
  *[_type in [${typesString}] &amp;&amp; brand == '${brand}'
546
- &amp;&amp; published_on > '${twoDaysAgo}'
547
- &amp;&amp; published_on &lt;= '${now}'
548
- &amp;&amp; dateTime(published_on) + length_in_seconds * 1000 > '${now}'] {
546
+ &amp;&amp; published_on > '${twoDaysAgo}'
547
+ || (published_on &lt;= '${now}' &amp;&amp; dateTime(published_on) + length_in_seconds * 1000 > '${now}')
548
+ ] {
549
549
  "id": railcontent_id,
550
550
  title,
551
551
  "image": thumbnail.asset->url,
@@ -1081,6 +1081,7 @@ module.exports = {
1081
1081
  fetchSongCount,
1082
1082
  fetchWorkouts,
1083
1083
  fetchNewReleases,
1084
+ fetchLiveEvent,
1084
1085
  fetchUpcomingEvents,
1085
1086
  fetchByRailContentId,
1086
1087
  fetchByRailContentIds,
@@ -1108,7 +1109,7 @@ module.exports = {
1108
1109
  <br class="clear">
1109
1110
 
1110
1111
  <footer>
1111
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Aug 13 2024 18:37:07 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1112
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a> on Tue Aug 13 2024 19:10:16 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1112
1113
  </footer>
1113
1114
 
1114
1115
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -496,9 +496,9 @@ async function fetchLiveEvent(brand) {
496
496
  // Adjust the query to filter events based on the calculated time window
497
497
  const query = `
498
498
  *[_type in [${typesString}] && brand == '${brand}'
499
- && published_on > '${twoDaysAgo}'
500
- && published_on <= '${now}'
501
- && dateTime(published_on) + length_in_seconds * 1000 > '${now}'] {
499
+ && published_on > '${twoDaysAgo}'
500
+ || (published_on <= '${now}' && dateTime(published_on) + length_in_seconds * 1000 > '${now}')
501
+ ] {
502
502
  "id": railcontent_id,
503
503
  title,
504
504
  "image": thumbnail.asset->url,
@@ -1034,6 +1034,7 @@ module.exports = {
1034
1034
  fetchSongCount,
1035
1035
  fetchWorkouts,
1036
1036
  fetchNewReleases,
1037
+ fetchLiveEvent,
1037
1038
  fetchUpcomingEvents,
1038
1039
  fetchByRailContentId,
1039
1040
  fetchByRailContentIds,