Switchout DB to CockroachDB
This commit is contained in:
@@ -7,13 +7,15 @@ namespace App\Traits;
|
||||
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
use App\Classes\FTN\Message;
|
||||
use App\Models\Setup;
|
||||
|
||||
trait MsgID
|
||||
{
|
||||
public function save(array $options = [])
|
||||
{
|
||||
if (! $this->exists) {
|
||||
// Only create a MSGID for locally generated conetnt
|
||||
if ((! $this->exists) && ($this->flags & Message::FLAG_LOCAL)) {
|
||||
$ftns = Setup::findOrFail(config('app.id'))->system->match($this->fftn->zone)->first();
|
||||
|
||||
if (is_null(Arr::get($this->attributes,'msgid')))
|
||||
|
Reference in New Issue
Block a user