Replace calls to server patch with a manual sync method
This commit is contained in:
parent
d8d1eacb42
commit
2d47f986ee
3 changed files with 8 additions and 29 deletions
|
@ -91,9 +91,7 @@ class BuildModificationService
|
|||
// if it fails we can just continue on as normal.
|
||||
if (!empty($updateData['build'])) {
|
||||
try {
|
||||
$this->daemonServerRepository->setServer($server)->update([
|
||||
'build' => $updateData['build'],
|
||||
]);
|
||||
$this->daemonServerRepository->setServer($server)->sync();
|
||||
} catch (DaemonConnectionException $exception) {
|
||||
Log::warning($exception, ['server_id' => $server->id]);
|
||||
}
|
||||
|
|
|
@ -63,9 +63,9 @@ class SuspensionService
|
|||
'status' => $isSuspending ? Server::STATUS_SUSPENDED : null,
|
||||
]);
|
||||
|
||||
// Only send the suspension request to wings if the server is not currently being transferred.
|
||||
// Only trigger a Wings server sync if it is not currently being transferred.
|
||||
if (is_null($server->transfer)) {
|
||||
$this->daemonServerRepository->setServer($server)->suspend($action === self::ACTION_UNSUSPEND);
|
||||
$this->daemonServerRepository->setServer($server)->sync();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue