From 6500b015e8880d90a7e0b74c969ba7af2f5caf61 Mon Sep 17 00:00:00 2001 From: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> Date: Wed, 29 May 2024 09:06:23 +0100 Subject: [PATCH] Code refactor Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> --- composer.json | 2 +- src/Notifications/OrderCreatedNotification.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index c647693..191090c 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "require-dev": { "laravel/pint": "^1.2", "larastan/larastan": "^2.4.0", - "sampoyigi/testbench": "^8.5", + "sampoyigi/testbench": "dev-main as 1.0", "pestphp/pest-plugin-laravel": "^2.0", "igniterlabs/ti-ext-importexport": "v4.x-dev as 4.0" }, diff --git a/src/Notifications/OrderCreatedNotification.php b/src/Notifications/OrderCreatedNotification.php index 9e2a97a..3293977 100644 --- a/src/Notifications/OrderCreatedNotification.php +++ b/src/Notifications/OrderCreatedNotification.php @@ -10,7 +10,7 @@ class OrderCreatedNotification extends Notification public function getRecipients(): array { return User::query()->isEnabled() - ->whereHasLocation($this->subject->location->getKey()) + ->whereHasOrDoesntHaveLocation($this->subject->location->getKey()) ->get()->all(); }