@@ -1114,7 +1114,7 @@ export class Message {
11141114 for ( var i = 0 ; i < list . body . items . length ; i ++ ) {
11151115 if ( ! Util . IsNullEmpty ( Config . stripe_api_secret ) ) {
11161116 var item = list . body . items [ i ] ;
1117- var name = item . metadata . name ;
1117+ var itemname = item . metadata . name ;
11181118 var create = item . metadata . creationTimestamp ;
11191119 var billed = item . metadata . labels . billed ;
11201120 var image = item . spec . containers [ 0 ] . image
@@ -1126,17 +1126,17 @@ export class Message {
11261126 if ( image . indexOf ( "openflownodered" ) > 0 && ! Util . IsNullEmpty ( userid ) ) {
11271127 try {
11281128 if ( billed != "true" && diffhours > 24 ) {
1129- cli . _logger . debug ( "[" + cli . user . username + "] Remove un billed nodered instance " + name + " that has been running for " + diffhours + " hours" ) ;
1129+ cli . _logger . debug ( "[" + cli . user . username + "] Remove un billed nodered instance " + itemname + " that has been running for " + diffhours + " hours" ) ;
11301130 // await this._DeleteNoderedInstance(userid, cli.user._id, cli.user.username, rootjwt);
11311131 }
1132- // console.log(name + " " + diffminutes + " min / " + diffhours + " hours");
1132+ // console.log(itemname + " " + diffminutes + " min / " + diffhours + " hours");
11331133 } catch ( error ) {
11341134 }
11351135 } else if ( image . indexOf ( "openflownodered" ) > 0 ) {
11361136 if ( billed != "true" && diffhours > 24 ) {
1137- console . log ( "unbilled " + name + " with no userid, should be removed, it has been running for " + diffhours + " hours" ) ;
1137+ console . log ( "unbilled " + itemname + " with no userid, should be removed, it has been running for " + diffhours + " hours" ) ;
11381138 } else {
1139- console . log ( "unbilled " + name + " with no userid, has been running for " + diffhours + " hours" ) ;
1139+ console . log ( "unbilled " + itemname + " with no userid, has been running for " + diffhours + " hours" ) ;
11401140 }
11411141 }
11421142 }
0 commit comments