Deletion fix

This commit is contained in:
Milan Paunovic
2024-12-24 16:07:18 +01:00
parent c93d66d13d
commit 10f6616cd0
7 changed files with 78 additions and 38 deletions

View File

@ -333,7 +333,7 @@ exports.processEventBatches = functions.pubsub
let notificationMessage;
if (externalOrigin) {
notificationMessage = `Calendar sync completed: ${events.length} ${events.length === 1 ? 'event has' : 'events have'} been added.`;
// notificationMessage = `Calendar sync completed: ${events.length} ${events.length === 1 ? 'event has' : 'events have'} been added.`;
} else {
notificationMessage = events.length === 1
? `New event "${events[0].title}" has been added to the family calendar.`