fix: sentry 4504136641

This commit is contained in:
Andras Bacsai 2023-09-28 13:40:58 +02:00
parent 9b6c162224
commit 1a04a57c01

View File

@ -14,8 +14,8 @@ class ShowPrivateKey extends Component
public function setPrivateKey($newPrivateKeyId)
{
try {
refresh_server_connection($this->server->privateKey);
$oldPrivateKeyId = $this->server->private_key_id;
refresh_server_connection($this->server->privateKey);
$this->server->update([
'private_key_id' => $newPrivateKeyId
]);