fix(xo-server/registerProxy): db.add does not return a model
Introduced by 8a71f8473
This commit is contained in:
parent
051bbf9449
commit
07c3a44441
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user