3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-16 11:55:48 +00:00

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

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;