mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 23:03:45 +02:00
Update calls to missing function
This commit is contained in:
@@ -57,6 +57,6 @@ class EggUpdateService
|
||||
}
|
||||
}
|
||||
|
||||
$this->repository->withoutFresh()->update($egg->id, $data);
|
||||
$this->repository->withoutFreshModel()->update($egg->id, $data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class InstallScriptService
|
||||
}
|
||||
}
|
||||
|
||||
$this->repository->withoutFresh()->update($egg->id, [
|
||||
$this->repository->withoutFreshModel()->update($egg->id, [
|
||||
'script_install' => array_get($data, 'script_install'),
|
||||
'script_is_privileged' => array_get($data, 'script_is_privileged', 1),
|
||||
'script_entry' => array_get($data, 'script_entry'),
|
||||
|
||||
@@ -89,7 +89,7 @@ class EggUpdateImporterService
|
||||
|
||||
// Update Existing Variables
|
||||
collect($parsed->variables)->each(function ($variable) use ($egg) {
|
||||
$this->variableRepository->withoutFresh()->updateOrCreate([
|
||||
$this->variableRepository->withoutFreshModel()->updateOrCreate([
|
||||
'egg_id' => $egg,
|
||||
'env_variable' => $variable->env_variable,
|
||||
], collect($variable)->except(['egg_id', 'env_variable'])->toArray());
|
||||
|
||||
@@ -64,7 +64,7 @@ class VariableUpdateService
|
||||
|
||||
$options = array_get($data, 'options') ?? [];
|
||||
|
||||
return $this->repository->withoutFresh()->update($variable->id, array_merge($data, [
|
||||
return $this->repository->withoutFreshModel()->update($variable->id, array_merge($data, [
|
||||
'user_viewable' => in_array('user_viewable', $options),
|
||||
'user_editable' => in_array('user_editable', $options),
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user