Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Add one hour timeout for expired messages event

Acho Arnold9fd11561ed5b
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
}