diff --git a/apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppStatus/AppStatus.tsx b/apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppStatus/AppStatus.tsx index 2f79d6edab60..a5ace5244d17 100644 --- a/apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppStatus/AppStatus.tsx +++ b/apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppStatus/AppStatus.tsx @@ -67,6 +67,7 @@ const AppStatus = ({ app, showStatus = true, isAppDetailsPage, installed, ...pro notifyAdmins({ appId: app.id, appName: app.name, + appVersion: app.marketplaceVersion, message: postMessage.message, }); }; diff --git a/apps/meteor/client/views/marketplace/AppMenu.js b/apps/meteor/client/views/marketplace/AppMenu.js index 01884924f57d..096b102273da 100644 --- a/apps/meteor/client/views/marketplace/AppMenu.js +++ b/apps/meteor/client/views/marketplace/AppMenu.js @@ -151,6 +151,7 @@ function AppMenu({ app, isAppDetailsPage, ...props }) { notifyAdmins({ appId: app.id, appName: app.name, + appVersion: app.marketplaceVersion, message: postMessage.message, }); }; diff --git a/apps/meteor/ee/server/apps/communication/rest.js b/apps/meteor/ee/server/apps/communication/rest.js index a377669e6549..410119a6217e 100644 --- a/apps/meteor/ee/server/apps/communication/rest.js +++ b/apps/meteor/ee/server/apps/communication/rest.js @@ -805,12 +805,12 @@ export class AppsRestApi { { authRequired: true }, { async post() { - const { appId, appName, message } = this.bodyParams; + const { appId, appName, appVersion, message } = this.bodyParams; const workspaceUrl = settings.get('Site_Url'); const regex = new RegExp('\\/$', 'gm'); const safeWorkspaceUrl = workspaceUrl.replace(regex, ''); - const learnMore = `${safeWorkspaceUrl}/marketplace/explore/info/${appId}`; + const learnMore = `${safeWorkspaceUrl}/marketplace/explore/info/${appId}/${appVersion}/requests`; try { const msgs = ({ adminUser }) => { diff --git a/packages/rest-typings/src/apps/index.ts b/packages/rest-typings/src/apps/index.ts index 285b0f866679..06f7e79f1541 100644 --- a/packages/rest-typings/src/apps/index.ts +++ b/packages/rest-typings/src/apps/index.ts @@ -180,7 +180,7 @@ export type AppsEndpoints = { }; '/apps/notify-admins': { - POST: (params: { appId: string; appName: string; message: string }) => void; + POST: (params: { appId: string; appName: string; appVersion: string; message: string }) => void; }; '/apps': {