Skip to content

Deduplicate emails using email_sends table#2322

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Feb 24, 2026
Merged

Deduplicate emails using email_sends table#2322
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Collaborator

Summary

  • Insert into email_sends table before sending uninstall, suspend, and credits_depleted emails; skip if the UNIQUE constraint rejects (duplicate)
  • Store resend_email_id after successful send for traceability
  • Extract installation deleted/suspended logic from webhook_handler.py into handle_installation_deleted_or_suspended.py

@hiroshinishio hiroshinishio self-assigned this Feb 24, 2026
@hiroshinishio hiroshinishio merged commit b1ada21 into main Feb 24, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch February 24, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant