@@ -93,7 +93,7 @@ Module.register("MMM-MysqlQuery", {
9393 notificationReceived : function ( notification , payload , sender ) {
9494 switch ( notification ) {
9595 case "DOM_OBJECTS_CREATED" :
96- this . debuglog ( " Received notification " + notification + " , payload=" + payload + " , from " + sender ) ;
96+ this . debuglog ( ` Received notification ${ notification } , payload=${ payload } , from ${ sender } ` ) ;
9797 this . triggerHelper ( ) ;
9898 this . startTimer ( ) ;
9999 break ;
@@ -102,7 +102,7 @@ Module.register("MMM-MysqlQuery", {
102102
103103
104104 triggerHelper : function ( ) {
105- this . debuglog ( " Sending MYSQLQUERY id=" + this . identifier + " , query=" + this . config . query ) ;
105+ this . debuglog ( ` Sending MYSQLQUERY id=${ this . identifier } , query=${ this . config . query } ` ) ;
106106 this . sendSocketNotification ( "MYSQLQUERY" , {
107107 identifier : this . identifier ,
108108 connection : this . config . connection ,
@@ -140,13 +140,12 @@ Module.register("MMM-MysqlQuery", {
140140 while ( parent . firstChild ) parent . removeChild ( parent . firstChild ) ;
141141 if ( rowsToAdd && rowsToAdd . length ) {
142142 rowsToAdd . forEach ( function ( dbRow ) {
143- helper . debuglog ( " Adding row to table: " + JSON . stringify ( dbRow , null , 2 ) ) ;
143+ helper . debuglog ( ` Adding row to table: ${ JSON . stringify ( dbRow , null , 2 ) } ` ) ;
144144 var tr = helper . createEle ( parent , "tr" ) ;
145145 helper . config . columns . forEach ( function ( colDef ) {
146146 var rawVal = dbRow [ colDef . name ] ;
147147 var displayVal = helper . formatCell ( rawVal , colDef ) ;
148- helper . debuglog ( " Col " + colDef . name + ": raw value=\"" + rawVal +
149- "\", display value=\"" + displayVal + "\"" ) ;
148+ helper . debuglog ( ` Col ${ colDef . name } : raw value="${ rawVal } ", display value="${ displayVal } "` ) ;
150149 var td = helper . createEle ( tr , "td" , colDef . cssClass ) ;
151150 if ( colDef . displayType == "html" ) {
152151 td . innerHTML = displayVal ;
0 commit comments