Merge pull request #15375 from Godmartinz/fix-acceptance-reminder-command

Fixes the `acceptance-reminder` command
This commit is contained in:
snipe 2024-08-23 07:31:29 +01:00 committed by GitHub
commit cc2c8f76d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,9 +47,10 @@ class SendAcceptanceReminder extends Command
{
$pending = CheckoutAcceptance::pending()->where('checkoutable_type', 'App\Models\Asset')
->whereHas('checkoutable', function($query) {
$query->where('archived', 0);
$query->where('accepted_at', null)
->where('declined_at', null);
})
->with(['assignedTo', 'checkoutable.assignedTo', 'checkoutable.model', 'checkoutable.adminuser'])
->with(['assignedTo', 'checkoutable.assignedTo', 'checkoutable.model', 'checkoutable.admin'])
->get();
$count = 0;