diff --git a/ui/src/app/components/install-wizard/prebaked-wizards.ts b/ui/src/app/components/install-wizard/prebaked-wizards.ts index 82ebb07eb..cacf0e5d5 100644 --- a/ui/src/app/components/install-wizard/prebaked-wizards.ts +++ b/ui/src/app/components/install-wizard/prebaked-wizards.ts @@ -59,7 +59,7 @@ export class WizardBaker { action, verb: 'beginning update for', title, - executeAction: () => this.embassyApi.installPackage({ id, version: version ? `=${version}` : undefined }), + executeAction: () => this.embassyApi.installPackage({ id, 'version-spec': version ? `=${version}` : undefined }), }, }, bottomBar: { @@ -158,7 +158,7 @@ export class WizardBaker { action, verb: 'beginning downgrade for', title, - executeAction: () => this.embassyApi.installPackage({ id, version: version ? `=${version}` : undefined }), + executeAction: () => this.embassyApi.installPackage({ id, 'version-spec': version ? `=${version}` : undefined }), }, }, bottomBar: { diff --git a/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts b/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts index 3052f1e13..99fafcd12 100644 --- a/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts +++ b/ui/src/app/pages/marketplace-routes/marketplace-show/marketplace-show.page.ts @@ -191,7 +191,7 @@ export class MarketplaceShowPage { loader.present() try { - await this.embassyApi.installPackage({ id, version: version ? `=${version}` : undefined }) + await this.embassyApi.installPackage({ id, 'version-spec': version ? `=${version}` : undefined }) } catch (e) { this.errToast.present(e) } finally { diff --git a/ui/src/app/services/api/api.types.ts b/ui/src/app/services/api/api.types.ts index 06172e22f..5ba73ed9a 100644 --- a/ui/src/app/services/api/api.types.ts +++ b/ui/src/app/services/api/api.types.ts @@ -142,7 +142,7 @@ export module RR { export type GetPackageMetricsReq = { id: string } // package.metrics export type GetPackageMetricsRes = Metric - export type InstallPackageReq = WithExpire<{ id: string, version?: string }> // package.install + export type InstallPackageReq = WithExpire<{ id: string, 'version-spec'?: string }> // package.install export type InstallPackageRes = WithRevision export type DryUpdatePackageReq = { id: string, version: string } // package.update.dry