diff --git a/src/modules/connection-test/connection-test.service.ts b/src/modules/connection-test/connection-test.service.ts index f0ed1a7..53218ce 100644 --- a/src/modules/connection-test/connection-test.service.ts +++ b/src/modules/connection-test/connection-test.service.ts @@ -38,14 +38,21 @@ export class ConnectionTestService { body: ConnectionTestPingReq, customer_name: string, ): Promise { - const { host: endpoint, plugin, port, network_config_id } = body; + const { + host: endpoint, + plugin, + port, + network_config_id, + connection_id, + } = body; return lastValueFrom( this.connectionTestReadClient.ConnectionTestPing({ customer_name, endpoint, network_config_id, plugin, - port: port.toString(), + port: port ? port.toString() : undefined, + connection_id, }), ); }