|
|
|
|
@ -2678,7 +2678,7 @@ const monitorWaterLevels = async () => {
|
|
|
|
|
const tankLocation = tank.tankLocation; // Assuming tank has a 'location' field
|
|
|
|
|
|
|
|
|
|
// Call the function to check water levels and send notifications
|
|
|
|
|
await checkWaterLevelsAndNotify(customerId, tankName, tankLocation, fcmTokens);
|
|
|
|
|
//await checkWaterLevelsAndNotify(customerId, tankName, tankLocation, fcmTokens);
|
|
|
|
|
} else {
|
|
|
|
|
//console.log(`No FCM tokens found for customerId ${tank.customerId}`);
|
|
|
|
|
}
|
|
|
|
|
|