@@ -83,6 +83,7 @@ scriptExecutor.execute = function execute(botsDetails,auditTrail,userName,execut
8383 botID : botDetails . id ,
8484 user : userName ,
8585 date : startHour ,
86+ gitHubId : botDetails . gitHubId
8687 } , { $inc : { "failedCount" : 1 , "runningCount" : - 1 } } , function ( err , data ) {
8788 if ( err ) logger . error ( JSON . stringify ( err ) )
8889 else logger . info ( "Running count of bot " , botDetails [ 0 ] . name , "incremented successfully" )
@@ -259,6 +260,7 @@ function executeScriptOnLocal(botsScriptDetails,auditTrail,userName,botHostDetai
259260 botID : botsScriptDetails . id ,
260261 user : userName ,
261262 date : startHour ,
263+ gitHubId : botsScriptDetails . gitHubId
262264 } , { $inc : { "failedCount" : 1 , "runningCount" : - 1 } } , function ( err , data ) {
263265 if ( err ) logger . error ( JSON . stringify ( err ) )
264266 else logger . info ( "Running count of bot " , botDetails [ 0 ] . name , "incremented successfully" )
@@ -321,6 +323,7 @@ function executeScriptOnLocal(botsScriptDetails,auditTrail,userName,botHostDetai
321323 botID : botsScriptDetails . id ,
322324 user : userName ,
323325 date : startHour ,
326+ gitHubId : botsScriptDetails . gitHubId
324327 } , { $inc : { "failedCount" : 1 , "runningCount" : - 1 } } , function ( err , data ) {
325328 if ( err ) logger . error ( JSON . stringify ( err ) )
326329 else logger . info ( "Running count of bot " , botsScriptDetails [ 0 ] . name , "incremented successfully" )
@@ -473,6 +476,7 @@ function executeScriptOnRemote(instance,botDetails,actionLogId,auditTrailId,user
473476 botID : botDetails . id ,
474477 user : userName ,
475478 date : startHour ,
479+ gitHubId : botDetails . gitHubId
476480 } , { $inc : { "failedCount" : 1 , "runningCount" : - 1 } } , function ( err , data ) {
477481 if ( err ) logger . error ( JSON . stringify ( err ) )
478482 else logger . info ( "Running count of bot " , botDetails [ 0 ] . name , "incremented successfully" )
@@ -548,6 +552,7 @@ function executeScriptOnRemote(instance,botDetails,actionLogId,auditTrailId,user
548552 botID : botDetails . id ,
549553 user : userName ,
550554 date : startHour ,
555+ gitHubId : botDetails . gitHubId
551556 } , { $inc : { "failedCount" : 1 , "runningCount" : - 1 } } , function ( err , data ) {
552557 if ( err ) logger . error ( JSON . stringify ( err ) )
553558 else logger . info ( "Running count of bot " , botDetails [ 0 ] . name , "incremented successfully" )
0 commit comments