From 1e58e108ba71ec6adcfcc61648d02f9f8c6bcd12 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 23 Aug 2020 20:23:42 -0700 Subject: [PATCH] Update last location using wrong column name --- .../Controllers/Api/Remote/Backups/BackupStatusController.php | 2 +- app/Http/Requests/Api/Remote/ReportBackupCompleteRequest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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', ]; }