fixed ssh tunnel connection test #972 #973

This commit is contained in:
Jan Prochazka
2024-12-25 09:49:23 +01:00
parent 1446fdad5e
commit 3916a5e6e8
2 changed files with 3 additions and 3 deletions

View File

@@ -237,7 +237,7 @@ module.exports = {
} }
); );
pipeForkLogs(subprocess); pipeForkLogs(subprocess);
subprocess.send({ connection, requestDbList }); subprocess.send({ ...connection, requestDbList });
return new Promise(resolve => { return new Promise(resolve => {
subprocess.on('message', resp => { subprocess.on('message', resp => {
if (handleProcessCommunication(resp, subprocess)) return; if (handleProcessCommunication(resp, subprocess)) return;

View File

@@ -16,9 +16,9 @@ Platform: ${process.platform}
function start() { function start() {
childProcessChecker(); childProcessChecker();
process.on('message', async args => { process.on('message', async connection => {
// @ts-ignore // @ts-ignore
const { connection, requestDbList } = args; const { requestDbList } = connection;
if (handleProcessCommunication(connection)) return; if (handleProcessCommunication(connection)) return;
try { try {
const driver = requireEngineDriver(connection); const driver = requireEngineDriver(connection);