Skip to content

Commit

Permalink
ui(admin): fix egg creation
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpi committed Sep 28, 2023
1 parent 6f5fb09 commit 3721b20
Show file tree
Hide file tree
Showing 9 changed files with 1,217 additions and 1,135 deletions.
2 changes: 0 additions & 2 deletions app/Http/Controllers/Api/Application/Eggs/EggController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class EggController extends ApplicationApiController
public function __construct(private EggExporterService $eggExporterService)
{
parent::__construct();

$this->eggExporterService = $eggExporterService;
}

/**
Expand Down
3 changes: 3 additions & 0 deletions app/Models/Egg.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class Egg extends Model
* Fields that are not mass assignable.
*/
protected $fillable = [
'nest_id',
'author',
'uuid',
'name',
'description',
'features',
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Server extends Model
'allocation_id' => 'required|bail|unique:servers|exists:allocations,id',
'nest_id' => 'required|exists:nests,id',
'egg_id' => 'required|exists:eggs,id',
'startup' => 'required|string',
'startup' => 'nullable|string',
'skip_scripts' => 'sometimes|boolean',
'image' => 'required|string|max:191',
'database_limit' => 'present|nullable|integer|min:0',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"license": "MIT",
"private": true,
"packageManager": "pnpm@7.26.3",
"packageManager": "pnpm@8.7.6",
"engines": {
"node": ">=16.13"
},
Expand Down
Loading

0 comments on commit 3721b20

Please sign in to comment.