Skip to content

Commit

Permalink
fix: process only active organizations` protocols (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Jan 15, 2024
1 parent c39c93a commit c0e8027
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Jobs/ProcessProtocolsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c0e8027

Please sign in to comment.