|
|
@ -2179,6 +2179,7 @@ console.log(fcmToken)
|
|
|
|
const tankName = req.body.to || "Unknown Tank"; // Provide a fallback if `to` is missing
|
|
|
|
const tankName = req.body.to || "Unknown Tank"; // Provide a fallback if `to` is missing
|
|
|
|
const stopTime = req.body.stopTime
|
|
|
|
const stopTime = req.body.stopTime
|
|
|
|
const motorOnType = req.body.motor_on_type || "App";
|
|
|
|
const motorOnType = req.body.motor_on_type || "App";
|
|
|
|
|
|
|
|
const manual_threshold_time = req.body.manual_threshold_time;
|
|
|
|
if (action === "start") {
|
|
|
|
if (action === "start") {
|
|
|
|
|
|
|
|
|
|
|
|
motorStopStatus = "2";
|
|
|
|
motorStopStatus = "2";
|
|
|
|