Replace calls to server patch with a manual sync method

This commit is contained in:
Dane Everitt 2021-08-29 13:32:55 -07:00
parent d8d1eacb42
commit 2d47f986ee
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 8 additions and 29 deletions

View file

@ -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();
}
});
}