Update last location using wrong column name
This commit is contained in:
parent
034a310702
commit
1e58e108ba
2 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,7 @@ class BackupStatusController extends Controller
|
||||||
{
|
{
|
||||||
$this->repository->updateWhere([['uuid', '=', $backup]], [
|
$this->repository->updateWhere([['uuid', '=', $backup]], [
|
||||||
'is_successful' => $request->input('successful') ? true : false,
|
'is_successful' => $request->input('successful') ? true : false,
|
||||||
'sha256_hash' => $request->input('checksum'),
|
'checksum' => $request->input('checksum_type') . ':' . $request->input('checksum'),
|
||||||
'bytes' => $request->input('size'),
|
'bytes' => $request->input('size'),
|
||||||
'completed_at' => CarbonImmutable::now(),
|
'completed_at' => CarbonImmutable::now(),
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -14,6 +14,7 @@ class ReportBackupCompleteRequest extends FormRequest
|
||||||
return [
|
return [
|
||||||
'successful' => 'boolean',
|
'successful' => 'boolean',
|
||||||
'checksum' => 'nullable|string|required_if:successful,true',
|
'checksum' => 'nullable|string|required_if:successful,true',
|
||||||
|
'checksum_type' => 'string|required_if:successful,true',
|
||||||
'size' => 'nullable|numeric|required_if:successful,true',
|
'size' => 'nullable|numeric|required_if:successful,true',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue