ashok 4 months ago
commit dfd080e9d6

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

Loading…
Cancel
Save