FIX: add connection add parameter to function

This commit is contained in:
rodrigo.zamboni
2022-08-30 16:44:27 -03:00
parent a1a55d645a
commit 2968647e73
@@ -38,14 +38,21 @@ export class ConnectionTestService {
body: ConnectionTestPingReq,
customer_name: string,
): Promise<ConnectionTestPingRes> {
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,
}),
);
}