From 2968647e7380acac51a36d828c9883581ca64bf4 Mon Sep 17 00:00:00 2001 From: "rodrigo.zamboni" Date: Tue, 30 Aug 2022 16:44:27 -0300 Subject: [PATCH] FIX: add connection add parameter to function --- .../connection-test/connection-test.service.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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, }), ); }