fix: Fix issue with key formatting introduced in 1.2.0 (#6896)

This commit is contained in:
Jon
2023-08-09 16:23:35 +01:00
committed by GitHub
parent 3d2f4406d7
commit 0e075c9cb5
4 changed files with 3 additions and 18 deletions

View File

@@ -8,9 +8,6 @@ import type { Server } from 'net';
import { createServer } from 'net';
import pgPromise from 'pg-promise';
import { rm } from 'fs/promises';
import type { PgpDatabase } from '../helpers/interfaces';
async function createSshConnectConfig(credentials: IDataObject) {
@@ -143,9 +140,6 @@ export async function configurePostgres(
});
sshClient.on('end', async () => {
if (tunnelConfig.privateKey) {
await rm(tunnelConfig.privateKey as string, { force: true });
}
if (proxy) proxy.close();
});
}).catch((err) => {