Update last location using wrong column name

This commit is contained in:
Dane Everitt 2020-08-23 20:23:42 -07:00
parent 034a310702
commit 1e58e108ba
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View file

@ -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(),
]);

View file

@ -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',
];
}