Skip to content

Commit

Permalink
fixes after redoing hiart
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 24, 2017
1 parent 1974f5d commit 2308604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public function getVNCInfo($model, $enable = false)
$vnc = ['endTime' => strtotime('+8 hours', strtotime($model->statuses['serverEnableVNC']))];
if ($model->canEnableVnc() && $vnc['endTime'] > time() || $enable) {
try {
$vnc = ArrayHelper::merge($vnc, Server::perform('EnableVNC', ['id' => $model->id]));
$vnc = ArrayHelper::merge($vnc, Server::perform('enable-VNC', ['id' => $model->id]));
$vnc['enabled'] = true;
} catch (ErrorResponseException $e) {
if ($e->getMessage() !== 'vds_has_tasks') { // expected error, that could be skipped
Expand Down
2 changes: 1 addition & 1 deletion src/models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function getUses()

public function getIps()
{
return $this->hasMany(Ip::class, ['device_id' => 'id'])->join('links');
return $this->hasMany(Ip::class, ['device_id' => 'id'])->joinWith('links');
}

/**
Expand Down

0 comments on commit 2308604

Please sign in to comment.