chore: Update web.php to cast server port as integer
This commit is contained in:
@@ -269,11 +269,12 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
} else {
|
} else {
|
||||||
$server = $execution->scheduledDatabaseBackup->database->destination->server;
|
$server = $execution->scheduledDatabaseBackup->database->destination->server;
|
||||||
}
|
}
|
||||||
|
|
||||||
$privateKeyLocation = $server->privateKey->getKeyLocation();
|
$privateKeyLocation = $server->privateKey->getKeyLocation();
|
||||||
$disk = Storage::build([
|
$disk = Storage::build([
|
||||||
'driver' => 'sftp',
|
'driver' => 'sftp',
|
||||||
'host' => $server->ip,
|
'host' => $server->ip,
|
||||||
'port' => $server->port,
|
'port' => (int) $server->port,
|
||||||
'username' => $server->user,
|
'username' => $server->user,
|
||||||
'privateKey' => $privateKeyLocation,
|
'privateKey' => $privateKeyLocation,
|
||||||
'root' => '/',
|
'root' => '/',
|
||||||
|
Reference in New Issue
Block a user