Skip to content

Commit 6455feb

Browse files
authored
Merge pull request #1695 from VarmaSANJAY/topic-performance
C50-579 OS check was not proper
2 parents b98551b + 8322243 commit 6455feb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/app/services/botService.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ botService.executeBots = function executeBots(botsId, reqBody, userName, executi
403403
botRemoteServerDetails.hostIP = botServerDetails[0].hostIP;
404404
botRemoteServerDetails.hostPort = botServerDetails[0].hostPort;
405405
} else {
406-
if (appConfig.enableBotExecuterOsCheck === true || process.env.enableBotExecuterOsCheck === true) {
406+
//As env variable will always be in string changed the check value to string
407+
if (appConfig.enableBotExecuterOsCheck === true || process.env.enableBotExecuterOsCheck === 'true') {
407408
logger.info("Inn OS check condition");
408409
executorOsTypeConditionCheck(botServerDetails, botRemoteServerDetails, bots);
409410
} else {

0 commit comments

Comments
 (0)