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 }) {
|
async registerProxy({ address, authenticationToken, name = this._generateDefaultProxyName(), vmUuid }) {
|
||||||
await this._throwIfRegistered(address, vmUuid)
|
await this._throwIfRegistered(address, vmUuid)
|
||||||
|
|
||||||
const {
|
const { id } = await this._db.add({
|
||||||
properties: { id },
|
|
||||||
} = await this._db.add({
|
|
||||||
address,
|
address,
|
||||||
authenticationToken,
|
authenticationToken,
|
||||||
name,
|
name,
|
||||||
|
Loading…
Reference in New Issue
Block a user