diff --git a/app/Http/Controllers/Api/Remote/Backups/BackupStatusController.php b/app/Http/Controllers/Api/Remote/Backups/BackupStatusController.php index be971d605..e658a8012 100644 --- a/app/Http/Controllers/Api/Remote/Backups/BackupStatusController.php +++ b/app/Http/Controllers/Api/Remote/Backups/BackupStatusController.php @@ -37,7 +37,7 @@ class BackupStatusController extends Controller { $this->repository->updateWhere([['uuid', '=', $backup]], [ 'is_successful' => $request->input('successful') ? true : false, - 'sha256_hash' => $request->input('checksum'), + 'checksum' => $request->input('checksum_type') . ':' . $request->input('checksum'), 'bytes' => $request->input('size'), 'completed_at' => CarbonImmutable::now(), ]); diff --git a/app/Http/Requests/Api/Remote/ReportBackupCompleteRequest.php b/app/Http/Requests/Api/Remote/ReportBackupCompleteRequest.php index edf744dc9..709961b71 100644 --- a/app/Http/Requests/Api/Remote/ReportBackupCompleteRequest.php +++ b/app/Http/Requests/Api/Remote/ReportBackupCompleteRequest.php @@ -14,6 +14,7 @@ class ReportBackupCompleteRequest extends FormRequest return [ 'successful' => 'boolean', 'checksum' => 'nullable|string|required_if:successful,true', + 'checksum_type' => 'string|required_if:successful,true', 'size' => 'nullable|numeric|required_if:successful,true', ]; }