Skip to content

Commit

Permalink
get the users, with augmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Aug 13, 2021
1 parent affb0cf commit 60e8243
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 @@ -10,7 +10,6 @@
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\Str;
use Statamic\Facades\Entry;
use Statamic\Facades\User;
use Statamic\Support\Arr;
use TransformStudios\Uptime\Notifications\AlertCleared;

Expand Down Expand Up @@ -121,7 +120,7 @@ private function handleAlert($notificationClass, $payload)
return response()->noContent();
}

if (! $users = collect($site->augmentedValue('users'))->map(fn (string $id) => User::find($id))) {
if (! $users = $site->augmentedValue('users')->value()) {
return response()->noContent();
}

Expand Down

0 comments on commit 60e8243

Please sign in to comment.