Skip to content

Commit

Permalink
fix: Made a typo in the WebhookListener
Browse files Browse the repository at this point in the history
  • Loading branch information
Poseidon281 committed Aug 1, 2024
1 parent c5568f2 commit 6473a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Listeners/WebhookListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function handleUserDeleted($event)
$appName = env('APP_NAME');
$appUrl = env('APP_URL');
$currentTime = Carbon::now()->toDateTimeString();
$color = hexdec(env('DISCORD_EMBED_COLOR')) ?? 7423;
$color = hexdec(env('DISCORD_EMBED_COLOR')) ?: 7423;
$admin = auth()->user()->username;

if (env('WEBHOOK_TYPE') === 'json') {
Expand Down Expand Up @@ -89,7 +89,7 @@ protected function handleUserCreated($event)
$appName = env('APP_NAME');
$appUrl = env('APP_URL');
$currentTime = Carbon::now()->toDateTimeString();
$color = hexdec(env('DISCORD_EMBED_COLOR')) ?? 7423;
$color = hexdec(env('DISCORD_EMBED_COLOR')) ?: 7423;

if (env('WEBHOOK_TYPE') === 'json') {
$message = [
Expand Down

0 comments on commit 6473a8d

Please sign in to comment.