Fix handling of upload IDs on backups

This commit is contained in:
Dane Everitt 2020-12-27 11:34:55 -08:00
parent 8e06628409
commit 952715facc
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 10 additions and 6 deletions

View file

@ -68,6 +68,11 @@ class Backup extends Model
'upload_id' => null,
];
/**
* @var string[]
*/
protected $guarded = ['id', 'created_at', 'updated_at', 'deleted_at'];
/**
* @var array
*/
@ -80,7 +85,7 @@ class Backup extends Model
'disk' => 'required|string',
'checksum' => 'nullable|string',
'bytes' => 'numeric',
'upload_id' => 'nullable|uuid',
'upload_id' => 'nullable|string',
];
/**