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,5 +1,5 @@
import axios from 'axios';
import { cloudServerUrl } from '../../Utils.js';
import { cloudServerUrl, serverAppId } from '../../Utils.js';
export default async function GetTemplate(request) {
const serverUrl = cloudServerUrl; //process.env.SERVER_URL;
@@ -10,7 +10,7 @@ export default async function GetTemplate(request) {
if (sessiontoken) {
const userRes = await axios.get(serverUrl + '/users/me', {
headers: {
'X-Parse-Application-Id': process.env.APP_ID,
'X-Parse-Application-Id': serverAppId,
'X-Parse-Session-Token': sessiontoken,
},
});