Skip to content

Commit

Permalink
Fix validation of cron_key field
Browse files Browse the repository at this point in the history
  • Loading branch information
srichter committed Oct 4, 2019
1 parent 87f2c30 commit c8fbe7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/WebsiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function store(Request $request)
'uptime_enabled' => 'boolean',
'uptime_keyword' => 'required_if:uptime_enabled,1',
'cron_enabled' => 'boolean',
'cron_keyword' => 'required_if:cron_enabled,1',
'cron_key' => 'required_if:cron_enabled,1',
]);

$this->panel->beforeSave(function ($data) use ($request) {
Expand Down Expand Up @@ -160,7 +160,7 @@ public function update(Request $request, Website $website)
'uptime_enabled' => 'boolean',
'uptime_keyword' => 'required_if:uptime_enabled,1',
'cron_enabled' => 'boolean',
'cron_keyword' => 'required_if:cron_enabled,1',
'cron_key' => 'required_if:cron_enabled,1',
]);

$this->panel->setEntry($website);
Expand Down

0 comments on commit c8fbe7f

Please sign in to comment.