mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
fixes send acceptance reminder query
This commit is contained in:
parent
09033b19a7
commit
3957d670d0
|
@ -47,9 +47,10 @@ class SendAcceptanceReminder extends Command
|
||||||
{
|
{
|
||||||
$pending = CheckoutAcceptance::pending()->where('checkoutable_type', 'App\Models\Asset')
|
$pending = CheckoutAcceptance::pending()->where('checkoutable_type', 'App\Models\Asset')
|
||||||
->whereHas('checkoutable', function($query) {
|
->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();
|
->get();
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
|
|
Loading…
Reference in a new issue