Skip to content

Commit

Permalink
Add one hour timeout for expired messages event
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Oct 10, 2023
1 parent beb3d00 commit 9fd1156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/pkg/services/email_notification_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9fd1156

Please sign in to comment.