Disable automatic email notifications on docket entry creation

- Remove automatic email sending when new docket entries are created
- Email notifications are now manual-only via green mail button
- Gives admin full control over when subscribers are notified
- Per user request to prevent unwanted automatic emails
This commit is contained in:
TheMaddax 2025-09-10 20:43:49 -06:00
parent d00fecce0f
commit 2426d644bc

View file

@ -123,17 +123,8 @@ router.post('/', authenticateToken, asyncHandler(async (req: AuthenticatedReques
},
});
// Send email notifications to subscribers
try {
await emailService.notifySubscribersOfNewEntry(
entry.title,
entry.date.toISOString(),
entry.summary
);
} catch (emailError) {
// Log email error but don't fail the request
console.error('Failed to send email notifications:', emailError);
}
// Email notifications are now manual-only via the green mail button
// Automatic notifications disabled per user request
res.status(201).json({
success: true,