Merge pull request #917 from nxglabs/handle_appid

fix: handle undefine appId
This commit is contained in:
prafull-opensignlabs
2025-06-30 07:37:32 +00:00
parent 7204183542
commit 7930a8f439
16 changed files with 36 additions and 31 deletions
@@ -1,4 +1,4 @@
import { cloudServerUrl } from '../../Utils.js';
import { cloudServerUrl, serverAppId } from '../../Utils.js';
import reportJson from './reportsJson.js';
import axios from 'axios';
@@ -14,7 +14,7 @@ export default async function getReport(request) {
const searchTerm = request.params.searchTerm || '';
const serverUrl = cloudServerUrl; //process.env.SERVER_URL;
const appId = process.env.APP_ID;
const appId = serverAppId;
const masterKey = process.env.MASTER_KEY;
const sessionToken = request.headers['sessiontoken'] || request.headers['x-parse-session-token'];
try {