ashok 9 months ago
commit 6479c0f669

@ -1580,8 +1580,8 @@ eventEmitter.on('motorStart', async (fcmTokens, timestamp, motorId, waterLevel,
`Tank Name: '${tankName}'\n` +
`Pump started at: '${startTime}'\n` +
`Initiated by user(s): ${userNames}\n` +
`Motor On Type: '${motorOnType}'\n` +
`Will stop after: '${stopTime}'`;
`Pump started by: '${motorOnType.toUpperCase()}'\n` +
`Will stop at: '${stopTime}'`;
// Send the notification
await sendNotification(fcmTokens, 'Arminta Water Management', message);
} catch (error) {

Loading…
Cancel
Save