Remove unnecessary API calls to daemon
This commit is contained in:
parent
59bfc212c9
commit
34ffcdae7a
10 changed files with 10 additions and 312 deletions
|
@ -107,9 +107,10 @@ class BuildModificationService
|
|||
$updateData = $this->structureService->handle($server);
|
||||
|
||||
try {
|
||||
$this->daemonServerRepository->setServer($server)->update(
|
||||
Arr::only($updateData, ['allocations', 'build', 'container'])
|
||||
);
|
||||
$this->daemonServerRepository
|
||||
->setServer($server)
|
||||
->update(Arr::only($updateData, ['build']));
|
||||
|
||||
$this->connection->commit();
|
||||
} catch (RequestException $exception) {
|
||||
throw new DaemonConnectionException($exception);
|
||||
|
|
Reference in a new issue