alpha cleanup

This commit is contained in:
robert dennis
2026-10-08 19:17:30 -04:00
parent e217e42360
commit 135b298560
93 changed files with 1231 additions and 919 deletions
@@ -19,7 +19,7 @@ final class UpdateInstallScript implements UpdatesEggInstallScripts
*
* @throws InvalidCopyFromException
*/
public function update(Egg $egg, array $data): void
public function update(Egg $egg, array $data): Egg
{
$copyFrom = JsonValueGuard::nullableInteger(Arr::get($data, 'copy_script_from'));
if ($copyFrom !== null && ! Egg::query()->scriptSources()->whereKey($copyFrom)->exists()) {
@@ -33,5 +33,7 @@ final class UpdateInstallScript implements UpdatesEggInstallScripts
'script_container' => JsonValueGuard::string(Arr::get($data, 'script_container')),
'copy_script_from' => $copyFrom,
]);
return $egg;
}
}