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:
parent
d00fecce0f
commit
2426d644bc
1 changed files with 2 additions and 11 deletions
|
|
@ -123,17 +123,8 @@ router.post('/', authenticateToken, asyncHandler(async (req: AuthenticatedReques
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Send email notifications to subscribers
|
// Email notifications are now manual-only via the green mail button
|
||||||
try {
|
// Automatic notifications disabled per user request
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
res.status(201).json({
|
res.status(201).json({
|
||||||
success: true,
|
success: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue