From c0e8027b3b838721258d72be9eac24e2d919a8d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Mon, 15 Jan 2024 17:04:25 +0000 Subject: [PATCH] fix: process only active organizations` protocols (#140) --- app/Jobs/ProcessProtocolsJob.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Jobs/ProcessProtocolsJob.php b/app/Jobs/ProcessProtocolsJob.php index a60fca6..ca68451 100644 --- a/app/Jobs/ProcessProtocolsJob.php +++ b/app/Jobs/ProcessProtocolsJob.php @@ -41,6 +41,7 @@ public function __construct() public function handle(): void { $organisations = Organisation::query() + ->whereActive() ->select(['id', 'name', 'email', 'contact_person']) ->withOnly([ 'users' => function ($query) {