mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-02 13:03:35 +00:00
fix: mark schedule notification as processed when agent fetch fails for email notification
This commit is contained in:
@@ -348,6 +348,9 @@ func (m *Manager) SendNotification(scheduledNotification models.ScheduledSLANoti
|
||||
agent, err := m.userStore.GetAgent(recipientID)
|
||||
if err != nil {
|
||||
m.lo.Error("error fetching agent for SLA notification", "recipient_id", recipientID, "error", err)
|
||||
if _, err := m.q.MarkNotificationProcessed.Exec(scheduledNotification.ID); err != nil {
|
||||
m.lo.Error("error marking notification as processed", "error", err)
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user