System::match() now returns an array

This commit is contained in:
Deon George
2021-08-08 23:53:56 +10:00
parent 7922bc6a7a
commit 7ec01d778a
4 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ trait MsgID
public function save(array $options = [])
{
if (! $this->exists) {
$ftns = Setup::findOrFail(config('app.id'))->system->match($this->fftn->zone);
$ftns = Setup::findOrFail(config('app.id'))->system->match($this->fftn->zone)->first();
if (is_null(Arr::get($this->attributes,'msgid')))
$this->attributes['msgid'] = sprintf('%s %08x',$ftns->ftn4d,timew());