When limiting the number of messages in a packet, only retrieve that number from the DB
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Classes\FTN;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
@@ -404,9 +405,9 @@ abstract class Packet extends FTNBase implements \Iterator, \Countable
|
||||
return (string)$this;
|
||||
}
|
||||
|
||||
public function mail(Collection $msgs): self
|
||||
public function mail(Builder $msgs): self
|
||||
{
|
||||
$this->messages = $msgs;
|
||||
$this->messages = $msgs->get();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user