From 60e824334697cfadf7b72fcd7a769f04b94f0f25 Mon Sep 17 00:00:00 2001 From: edalzell Date: Fri, 13 Aug 2021 13:40:21 -0700 Subject: [PATCH] get the users, with augmentation --- src/Http/Controllers/WebhookController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Http/Controllers/WebhookController.php b/src/Http/Controllers/WebhookController.php index d0f1600..edffcb3 100644 --- a/src/Http/Controllers/WebhookController.php +++ b/src/Http/Controllers/WebhookController.php @@ -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; @@ -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(); }