mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Only return messages with an event
This commit is contained in:
parent
5be3b38f96
commit
7a96c25f8b
@ -32,7 +32,7 @@ class EmailHistoryController extends BaseController
|
||||
->orderBy('id', 'DESC')
|
||||
->cursor()
|
||||
->map(function ($system_log) {
|
||||
if($system_log->log['history'] ?? false) {
|
||||
if(($system_log->log['history'] && $system_log->log['history']['events'] && count($system_log->log['history']['events']) >=1) ?? false) {
|
||||
return $system_log->log['history'];
|
||||
}
|
||||
});
|
||||
@ -57,7 +57,7 @@ class EmailHistoryController extends BaseController
|
||||
->orderBy('id', 'DESC')
|
||||
->cursor()
|
||||
->map(function ($system_log) {
|
||||
if($system_log->log['history'] ?? false) {
|
||||
if(($system_log->log['history'] && $system_log->log['history']['events'] && count($system_log->log['history']['events']) >=1) ?? false) {
|
||||
return $system_log->log['history'];
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user