When limiting the number of messages in a packet, only retrieve that number from the DB
This commit is contained in:
@@ -45,7 +45,7 @@ class MailList extends Command
|
||||
'from' => 'FROM',
|
||||
'to' => 'TO',
|
||||
'subject' => 'SUBJECT',
|
||||
],$ao->netmailWaiting()->map(function($item) {
|
||||
],$ao->netmailWaiting()->get()->map(function($item) {
|
||||
return [
|
||||
'id'=>$item->id,
|
||||
'msgid'=>$item->msgid,
|
||||
@@ -63,7 +63,7 @@ class MailList extends Command
|
||||
'to' => 'TO',
|
||||
'subject' => 'SUBJECT',
|
||||
'area' => 'AREA',
|
||||
],$ao->echomailWaiting()->map(function($item) {
|
||||
],$ao->echomailWaiting()->get()->map(function($item) {
|
||||
return [
|
||||
'id'=>$item->id,
|
||||
'msgid'=>$item->msgid,
|
||||
|
Reference in New Issue
Block a user