fix(xo-server/registerProxy): db.add does not return a model

Introduced by 8a71f8473
This commit is contained in:
Julien Fontanet 2022-07-25 18:01:30 +02:00
parent 051bbf9449
commit 07c3a44441

View File

@ -108,9 +108,7 @@ export default class Proxy {
async registerProxy({ address, authenticationToken, name = this._generateDefaultProxyName(), vmUuid }) {
await this._throwIfRegistered(address, vmUuid)
const {
properties: { id },
} = await this._db.add({
const { id } = await this._db.add({
address,
authenticationToken,
name,