From 2426d644bc2469b6bc5333fb6ffcc1573043fac3 Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Wed, 10 Sep 2025 20:43:49 -0600 Subject: [PATCH] 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 --- backend/src/routes/docket.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/backend/src/routes/docket.ts b/backend/src/routes/docket.ts index 3d310bd4..12fef0a5 100644 --- a/backend/src/routes/docket.ts +++ b/backend/src/routes/docket.ts @@ -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,