mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Use checksum more broadly, not specifically SHA256
This commit is contained in:
@@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
* @property string $name
|
||||
* @property string[] $ignored_files
|
||||
* @property string $disk
|
||||
* @property string|null $sha256_hash
|
||||
* @property string|null $checksum
|
||||
* @property int $bytes
|
||||
* @property \Carbon\CarbonImmutable|null $completed_at
|
||||
* @property \Carbon\CarbonImmutable $created_at
|
||||
@@ -62,7 +62,7 @@ class Backup extends Model
|
||||
*/
|
||||
protected $attributes = [
|
||||
'is_successful' => true,
|
||||
'sha256_hash' => null,
|
||||
'checksum' => null,
|
||||
'bytes' => 0,
|
||||
];
|
||||
|
||||
@@ -76,7 +76,7 @@ class Backup extends Model
|
||||
'name' => 'required|string',
|
||||
'ignored_files' => 'array',
|
||||
'disk' => 'required|string',
|
||||
'sha256_hash' => 'nullable|string',
|
||||
'checksum' => 'nullable|string',
|
||||
'bytes' => 'numeric',
|
||||
];
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class BackupTransformer extends BaseClientTransformer
|
||||
'is_successful' => $backup->is_successful,
|
||||
'name' => $backup->name,
|
||||
'ignored_files' => $backup->ignored_files,
|
||||
'sha256_hash' => $backup->sha256_hash,
|
||||
'checksum' => $backup->checksum,
|
||||
'bytes' => $backup->bytes,
|
||||
'created_at' => $backup->created_at->toIso8601String(),
|
||||
'completed_at' => $backup->completed_at ? $backup->completed_at->toIso8601String() : null,
|
||||
|
||||
Reference in New Issue
Block a user