diff --git a/apps/meteor/app/apps/server/marketplace/appInstall.ts b/apps/meteor/app/apps/server/marketplace/appInstall.ts index ab59d2befc12c..a18b8f57eae28 100644 --- a/apps/meteor/app/apps/server/marketplace/appInstall.ts +++ b/apps/meteor/app/apps/server/marketplace/appInstall.ts @@ -7,15 +7,11 @@ import { Info } from '../../../utils/server'; export type installAction = 'install' | 'update' | 'uninstall'; export async function notifyAppInstall(marketplaceBaseUrl: string, action: installAction, appInfo: IAppInfo): Promise { - let headers = { - Authorization: '', - }; + const headers: { Authorization?: string } = {}; try { const token = await getWorkspaceAccessToken(); - headers = { - Authorization: `Bearer ${token}`, - }; + headers.Authorization = `Bearer ${token}`; // eslint-disable-next-line no-empty } catch {}