mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-25 02:22:36 +01:00
Update last location using wrong column name
This commit is contained in:
parent
034a310702
commit
1e58e108ba
@ -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(),
|
||||
]);
|
||||
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user