Update calls to missing function
This commit is contained in:
parent
60eb60013c
commit
5f9fe4a69b
45 changed files with 78 additions and 78 deletions
|
@ -94,7 +94,7 @@ class DetailsModificationService
|
|||
}
|
||||
|
||||
$this->connection->beginTransaction();
|
||||
$this->repository->withoutFresh()->update($server->id, [
|
||||
$this->repository->withoutFreshModel()->update($server->id, [
|
||||
'owner_id' => array_get($data, 'owner_id'),
|
||||
'name' => array_get($data, 'name'),
|
||||
'description' => array_get($data, 'description', ''),
|
||||
|
@ -125,7 +125,7 @@ class DetailsModificationService
|
|||
}
|
||||
|
||||
$this->connection->beginTransaction();
|
||||
$this->repository->withoutFresh()->update($server->id, ['image' => $image]);
|
||||
$this->repository->withoutFreshModel()->update($server->id, ['image' => $image]);
|
||||
|
||||
try {
|
||||
$this->daemonServerRepository->setNode($server->node_id)->setAccessServer($server->uuid)->update([
|
||||
|
|
|
@ -72,7 +72,7 @@ class ReinstallServerService
|
|||
}
|
||||
|
||||
$this->database->beginTransaction();
|
||||
$this->repository->withoutFresh()->update($server->id, [
|
||||
$this->repository->withoutFreshModel()->update($server->id, [
|
||||
'installed' => 0,
|
||||
]);
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ class StartupModificationService
|
|||
$results = $this->validatorService->handle(array_get($data, 'egg_id', $server->egg_id), array_get($data, 'environment', []));
|
||||
|
||||
$results->each(function ($result) use ($server) {
|
||||
$this->serverVariableRepository->withoutFresh()->updateOrCreate([
|
||||
$this->serverVariableRepository->withoutFreshModel()->updateOrCreate([
|
||||
'server_id' => $server->id,
|
||||
'variable_id' => $result->id,
|
||||
], [
|
||||
|
|
|
@ -91,7 +91,7 @@ class SuspensionService
|
|||
}
|
||||
|
||||
$this->database->beginTransaction();
|
||||
$this->repository->withoutFresh()->update($server->id, [
|
||||
$this->repository->withoutFreshModel()->update($server->id, [
|
||||
'suspended' => $action === 'suspend',
|
||||
]);
|
||||
|
||||
|
|
Reference in a new issue