fix(xo-server/unregisterProxy): don't try to unbind license if method unavailable

This commit is contained in:
Julien Fontanet 2022-07-25 18:05:08 +02:00
parent 07c3a44441
commit 9150823c37

View File

@ -125,7 +125,7 @@ export default class Proxy {
if (vmUuid !== undefined) {
// waiting the unbind of the license in order to be available at the end of the method call
await this._app
.unbindLicense({
.unbindLicense?.({
boundObjectId: vmUuid,
productId: this._app.config.get('xo-proxy.licenseProductId'),
})