diff --git a/go-app/internal/cmc/handlers/quotes/quotes.go b/go-app/internal/cmc/handlers/quotes/quotes.go index cf0d39e9..ccc8f16c 100644 --- a/go-app/internal/cmc/handlers/quotes/quotes.go +++ b/go-app/internal/cmc/handlers/quotes/quotes.go @@ -386,8 +386,10 @@ func (h *QuotesHandler) SendQuoteReminderEmail(ctx context.Context, quoteID int3 if err != nil { return fmt.Errorf("failed to check existing reminders: %w", err) } + + // Exit if the email has already been sent if len(reminders) > 0 { - return fmt.Errorf("reminder of type %s already sent for quote %d", reminderType.String(), quoteID) + return nil } // Send the email diff --git a/go-app/server b/go-app/server index 54b70bf1..bc461769 100755 Binary files a/go-app/server and b/go-app/server differ