diff --git a/packages/cli/src/commands/deploy.ts b/packages/cli/src/commands/deploy.ts index cc8c567353..91786beb18 100644 --- a/packages/cli/src/commands/deploy.ts +++ b/packages/cli/src/commands/deploy.ts @@ -212,7 +212,7 @@ deploy (./src/commands/deploy.ts) task: async () => { // Load the insight classes await insight.actions.run( - `ReloadInsightClasses('${Env.APP}');`, + `ReloadInsightClasses(project='${Env.APP}', release=true);`, ); return true; @@ -223,7 +223,7 @@ deploy (./src/commands/deploy.ts) task: async (context) => { // Publish the app const { pixelReturn } = await insight.actions.run<[string]>( - `PublishProject('${Env.APP}', release=true);`, + `PublishProject(project='${Env.APP}', release=true);`, ); // save the url diff --git a/packages/client/src/components/app/AppSettings.tsx b/packages/client/src/components/app/AppSettings.tsx index 5c14ba9533..d13aeda8b6 100644 --- a/packages/client/src/components/app/AppSettings.tsx +++ b/packages/client/src/components/app/AppSettings.tsx @@ -274,12 +274,8 @@ export const AppSettings = (props: AppSettingsProps) => { compiledBy?: string; }>( adminMode - ? ` - AdminGetProjectPortalDetails('${id}'); - ` - : ` - GetProjectPortalDetails('${id}'); - `, + ? `AdminGetProjectPortalDetails('${id}');` + : `GetProjectPortalDetails('${id}');`, ); useEffect(() => { @@ -350,9 +346,9 @@ export const AppSettings = (props: AppSettingsProps) => { const recompileReactors = ({ release }) => { let pixelString; if (release == null) { - pixelString = `ReloadInsightClasses('${id}');`; + pixelString = `ReloadInsightClasses(project='${id}');`; } else { - pixelString = `ReloadInsightClasses('${id}', release = true );`; + pixelString = `ReloadInsightClasses(project='${id}', release=true);`; } monolithStore @@ -397,7 +393,7 @@ export const AppSettings = (props: AppSettingsProps) => { * @desc Publishes Portal */ const publish = () => { - const pixelString = `PublishProject('${id}', release=true);`; + const pixelString = `PublishProject(project='${id}', release=true);`; monolithStore .runQuery(pixelString) @@ -504,14 +500,16 @@ export const AppSettings = (props: AppSettingsProps) => { ); // Load the insight classes - await monolithStore.runQuery(`ReloadInsightClasses('${id}');`); + await monolithStore.runQuery( + `ReloadInsightClasses(project='${id}', release=true);`, + ); // set the app portal await monolithStore.setProjectPortal(false, id, true, 'public'); // Publish the app the insight classes await monolithStore.runQuery( - `PublishProject('${id}', release=true);`, + `PublishProject(project='${id}', release=true);`, ); notification.add({