Skip to content

Commit

Permalink
fix: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
timmylindh committed May 27, 2024
1 parent 9385e98 commit 2906f8e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Http/Controllers/WorkerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ public function cron(Request $request)
{
$task = $request->headers->get('X-Aws-Sqsd-Taskname');

if ($task !== 'cron') {
return response()->json(['status' => 'ok']);
if ($task === 'cron') {
Artisan::call('schedule:run', [], new BufferedOutput());
}

Artisan::call('schedule:run', [], new BufferedOutput());

return response()->json(['status' => 'ok']);
}
}

0 comments on commit 2906f8e

Please sign in to comment.