Skip to content

Commit

Permalink
Update ForgeWebhook.php
Browse files Browse the repository at this point in the history
  • Loading branch information
adrolli committed Jun 4, 2024
1 parent bd4825d commit d53e9ad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/forge-servers/src/Webhooks/ForgeWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public function handleForge(Request $request)
->url('https://forge.laravel.com/servers/'.$project->server_id.'/sites/'.$project->site_id.'/deployments', shouldOpenInNewTab: true),
])
->success()
//->broadcast($user);
->sendToDatabase($user);
->broadcast($user);
} else {
Notification::make()
->title('Project '.$project->name.' has NOT been deployed! Visit Forge to resolve errors.')
Expand All @@ -41,10 +40,9 @@ public function handleForge(Request $request)
])
->body(json_encode($data))
->danger()
->persistent()
->broadcast($user);
->sendToDatabase($user);

logger()->error('Project '.$project->name.' has NOT been deployed.');
logger()->error('Project '.$project->name.' has NOT been deployed due to errors.');
}

$project->update([
Expand Down

0 comments on commit d53e9ad

Please sign in to comment.