Generated mail from the hub wont have defined
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 42s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m44s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-05-21 23:30:48 +10:00
parent d2c97ca42b
commit 3ca2886daa
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ final class Echomail extends Model implements Packet
parent::boot();
static::creating(function($model) {
if ($model->errors->count())
if (isset($model->errors) && $model->errors->count())
throw new \Exception('Cannot save, validation errors exist');
});

View File

@ -86,7 +86,7 @@ final class Netmail extends Model implements Packet
parent::boot();
static::creating(function($model) {
if ($model->errors->count())
if (isset($model->errors) && $model->errors->count())
throw new \Exception('Cannot save, validation errors exist');
});