fix(xo-web/xoa-updater): wait for trial request before checking trial state

Fixes #3407
This commit is contained in:
Pierre Donias 2018-09-14 11:49:24 +02:00
parent 63fe0f2c88
commit 06d555d4f9
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
- [Remotes] Rename connect(ed)/disconnect(ed) to enable(d)/disable(d) [#3323](https://github.com/vatesfr/xen-orchestra/issues/3323) (PR [#3396](https://github.com/vatesfr/xen-orchestra/pull/3396))
- [Remotes] Fix error appears twice on testing (PR [#3399](https://github.com/vatesfr/xen-orchestra/pull/3399))
- [Backup NG] Don't fail on VMs with empty VBDs (like CDs or floppy disks) (PR [#3410](https://github.com/vatesfr/xen-orchestra/pull/3410))
- [XOA updater] Fix issue where trial request would fail [#3407](https://github.com/vatesfr/xen-orchestra/issues/3407)
### Released packages

View File

@ -280,7 +280,7 @@ class XoaUpdater extends EventEmitter {
throw new Error('You are already under trial')
}
try {
return this._call('requestTrial', { trialPlan: 'premium' })
return await this._call('requestTrial', { trialPlan: 'premium' })
} finally {
this.xoaState()
}