diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index a2ee1dec..dfd93de7 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1433,7 +1433,6 @@ eventEmitter.on( const motorName = `${tankName}-${blockName}-${typeOfWater}`; const message = - ` MOTOR STARTED \n` + `🚰 Motor Name: ${motorName}\n` + `🚰 Tank Name: '${tankName}'\n` + `🏢 Block Name: '${blockName}'\n` + @@ -1442,7 +1441,7 @@ eventEmitter.on( `🕒 Pump started at: ${startTime} \n` + `Will stop after: '${manual_threshold_time}' mins`; - await sendNotification(hw_Id, customerId, fcmTokens, "Arminta", message); + await sendNotification(hw_Id, customerId, fcmTokens, "Arminta MOTOR STARTED", message); } catch (error) { console.error("Error in motorStart event:", error); } @@ -1495,7 +1494,6 @@ eventEmitter.on( const motorName = `${tankName}-${blockName}-${typeOfWater}`; const message = - ` MOTOR STOPPED \n` + `🚰 Motor Name: ${motorName}\n` + `🛢️ Tank Name: '${tankName}'\n` + `🏢 Block Name: '${blockName}'\n` + @@ -1504,7 +1502,7 @@ eventEmitter.on( `🕒 Pump stopped at: ${stopTime}\n` + `💧 Total water pumped: ${totalWaterPumped} liters\n`; - await sendNotification(hw_Id, customerId, fcmTokens, "Arminta", message); + await sendNotification(hw_Id, customerId, fcmTokens, "Arminta MOTOR STOPPED", message); } catch (error) { console.error("Error in motorStop event:", error); }