version spec undo

This commit is contained in:
Drew Ansbacher
2021-12-01 10:57:13 -07:00
committed by Aiden McClelland
parent 1a3d0f8e95
commit 098dc0a6d0
3 changed files with 4 additions and 4 deletions

View File

@@ -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: {

View File

@@ -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 {

View File

@@ -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<null>
export type DryUpdatePackageReq = { id: string, version: string } // package.update.dry