Refactor how repositories for the daemon work.
This commit is contained in:
parent
5f9fe4a69b
commit
d2afc29a80
58 changed files with 388 additions and 997 deletions
|
@ -77,7 +77,7 @@ class RebuildServerCommand extends Command
|
|||
$json = array_merge($this->configurationStructureService->handle($server), ['rebuild' => true]);
|
||||
|
||||
try {
|
||||
$this->daemonRepository->setNode($server->node_id)->setAccessServer($server->uuid)->update($json);
|
||||
$this->daemonRepository->setServer($server)->update($json);
|
||||
} catch (RequestException $exception) {
|
||||
$this->output->error(trans('command/messages.server.rebuild_failed', [
|
||||
'name' => $server->name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue