fix test to check all mailable types for reminders

This commit is contained in:
Godfrey M
2025-09-24 13:22:33 -07:00
parent 0ce20c1edd
commit 9ac2ea2a52
2 changed files with 56 additions and 9 deletions
+2 -2
View File
@@ -1189,10 +1189,10 @@ class ReportsController extends Controller
return redirect()->route('reports/unaccepted_assets')->with('error', trans('general.bad_data'));
} else {
if($item instanceof LicenseSeat){
$logItem_res = $item->license->checkouts()->where('created_at', '=', $acceptance->created_at)->get();
$logItem_res = $item->license->checkouts()->with('adminuser')->where('created_at', '=', $acceptance->created_at)->get();
}
else{
$logItem_res = $item->checkouts()->where('created_at', '=', $acceptance->created_at)->get();
$logItem_res = $item->checkouts()->with('adminuser')->where('created_at', '=', $acceptance->created_at)->get();
}
if ($logItem_res->isEmpty()){
Log::debug('Acceptance date mismatch');