Skip to content

Commit

Permalink
use property accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Apr 29, 2022
1 parent 15cac1b commit 7a5431b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Illuminate\Http\Request;
use Illuminate\Notifications\AnonymousNotifiable;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\Str;
use Statamic\Facades\Entry;
use Statamic\Support\Arr;
Expand Down Expand Up @@ -50,7 +49,7 @@ private function handleAlert($notificationClass, $payload)
return response()->noContent();
}

if (! $users = $site->augmentedValue('users')->value()) {
if ($site->users->isEmpty()) {
return response()->noContent();
}

Expand Down

0 comments on commit 7a5431b

Please sign in to comment.