musora-content-services 1.0.122 → 1.0.123

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,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.123](https://github.com/railroadmedia/musora-content-services/compare/v1.0.122...v1.0.123) (2024-10-02)
6
+
5
7
  ### [1.0.122](https://github.com/railroadmedia/musora-content-services/compare/v1.0.118...v1.0.122) (2024-10-02)
6
8
 
7
9
  ### [1.0.121](https://github.com/railroadmedia/musora-content-services/compare/v1.0.120...v1.0.121) (2024-10-01)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "1.0.122",
3
+ "version": "1.0.123",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -256,8 +256,6 @@ export async function fetchContentPageUserData(contentId) {
256
256
  }
257
257
 
258
258
  export async function fetchUserPermissions() {
259
- //TODO: Should be investigate why throw 500 errors on MA
260
- return [];
261
259
  let url = `/content/user_data_permissions`;
262
260
  const headers = {
263
261
  'Content-Type': 'application/json',
@@ -1315,7 +1315,8 @@ export async function fetchSanity(query,
1315
1315
  { customPostProcess = null,
1316
1316
  processNeedAccess = true,} = {}
1317
1317
  ) {
1318
-
1318
+ //TODO: Disable need_access decorator - should be deleted, but first should chck why the /content/user_data_permissions endpoint return 500 error
1319
+ processNeedAccess = false;
1319
1320
  // Check the config object before proceeding
1320
1321
  if (!checkSanityConfig(globalConfig)) {
1321
1322
  return null;