From 9fd11561ed5bcca21fe3c1167cdbda0bd185dcb8 Mon Sep 17 00:00:00 2001 From: Acho Arnold Date: Tue, 10 Oct 2023 21:35:30 +0300 Subject: [PATCH] Add one hour timeout for expired messages event --- api/pkg/services/email_notification_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/pkg/services/email_notification_service.go b/api/pkg/services/email_notification_service.go index 383dcf7e..6be73f75 100644 --- a/api/pkg/services/email_notification_service.go +++ b/api/pkg/services/email_notification_service.go @@ -83,7 +83,7 @@ func (service *EmailNotificationService) NotifyMessageExpired(ctx context.Contex ctxLogger.Info(fmt.Sprintf("[%s] email sent to [%s] for message with ID [%s]", events.EventTypeMessageSendExpired, user.ID, payload.MessageID)) - service.addToCache(ctx, fifteenMinuteTimeout, events.EventTypeMessageSendExpired, payload.Owner) + service.addToCache(ctx, oneHourTimeout, events.EventTypeMessageSendExpired, payload.Owner) return nil }