diff --git a/server/basicServices/basicServices/BasicServicesService.js b/server/basicServices/basicServices/BasicServicesService.js index 4a0ddee1..edd613c3 100644 --- a/server/basicServices/basicServices/BasicServicesService.js +++ b/server/basicServices/basicServices/BasicServicesService.js @@ -871,6 +871,7 @@ exports.updateClient = async function (body, user, xCorrelator, traceIndicator, currentReleaseNumber, newReleaseFwName); + if (httpClientUuidOfFutureApplication) { let tcpClientUuidOfFutureApplication = await LogicalTerminationPoint.getServerLtpListAsync(httpClientUuidOfFutureApplication); let existingIpAddressOfFutureApplication = await tcpClientInterface.getRemoteAddressAsync(tcpClientUuidOfFutureApplication[0]); @@ -901,10 +902,11 @@ exports.updateClient = async function (body, user, xCorrelator, traceIndicator, ltpConfigurationList.push(tcpClientUuidOfFutureApplication[0]); } - if (httpClientUuidOfCurrentApplication) { + if (httpClientUuidOfCurrentApplication && (httpClientUuidOfCurrentApplication !== httpClientUuidOfFutureApplication)) { let updateUuidList = await transferOperationClientFromOldToNewRelease(httpClientUuidOfCurrentApplication, httpClientUuidOfFutureApplication) ltpConfigurationList = ltpConfigurationList.concat(updateUuidList); - } + + } } else if (httpClientUuidOfCurrentApplication) { let tcpClientUuidOfCurrentApplication = await LogicalTerminationPoint.getServerLtpListAsync(httpClientUuidOfCurrentApplication); let existingIpAddressOfCurrentApplication = await tcpClientInterface.getRemoteAddressAsync(tcpClientUuidOfCurrentApplication[0]);