Removing error when already sent email
This commit is contained in:
parent
eecb120a93
commit
f9c562a85d
|
|
@ -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
|
||||
|
|
|
|||
BIN
go-app/server
BIN
go-app/server
Binary file not shown.
Loading…
Reference in a new issue