|
|
|
@ -4325,7 +4325,7 @@ cron.schedule("*/1 * * * *", async () => {
|
|
|
|
|
if (!customerId || !hardwareId) continue;
|
|
|
|
|
|
|
|
|
|
// ✅ Update GSM and LoRa connection statuses
|
|
|
|
|
await updateConnectedStatusOnly(customerId, hardwareId);
|
|
|
|
|
// await updateConnectedStatusOnly(customerId, hardwareId);
|
|
|
|
|
|
|
|
|
|
// 🔄 Re-fetch updated master and slaves
|
|
|
|
|
const updatedMaster = await Insensors.findOne({ hardwareId, customerId }).lean();
|
|
|
|
|