chore: Update web.php to cast server port as integer
This commit is contained in:
parent
8e6c7eaeda
commit
d75e55111a
1 changed files with 2 additions and 1 deletions
|
|
@ -269,11 +269,12 @@
|
||||||
} 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' => '/',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue