Skip to content

Conversation

@hiroshinishio
Copy link
Contributor

  • Create generateRandomDelay utility for 30-60 minute random delays
  • Update sendEmail function to use proper Resend types (CreateEmailOptions, CreateEmailRequestOptions)
  • Add idempotency key generation using randomUUID for email deduplication
  • Configure welcome emails to use random delay via scheduledAt parameter
  • Contact emails send immediately without delay
  • Convert Date to ISO string format for Resend API compatibility

🤖 Generated with Claude Code

- Create generateRandomDelay utility for 30-60 minute random delays
- Update sendEmail function to use proper Resend types (CreateEmailOptions, CreateEmailRequestOptions)
- Add idempotency key generation using randomUUID for email deduplication
- Configure welcome emails to use random delay via scheduledAt parameter
- Contact emails send immediately without delay
- Convert Date to ISO string format for Resend API compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@gitauto-ai
Copy link

gitauto-ai bot commented Jul 26, 2025

🧪 Manage Tests?

Select files to manage tests for (create, update, or remove):

  • modified app/actions/resend/send-email.ts (Line: 0%, Function: 0%, Branch: 0%)
  • modified app/api/auth/[...nextauth]/route.ts (Line: 0%, Function: 0%, Branch: 0%)
  • added utils/generate-random-delay.ts

  • Yes, manage tests

Click the checkbox and GitAuto will add/update/remove tests for the selected files to this PR.
If GitAuto's commits are not satisfactory, you can reset to your original state from your local branch:

git checkout wes
git push --force-with-lease origin wes

You can turn off triggers, update coding rules, or exclude files.
For contact, email us at info@gitauto.ai or visit our contact page

@hiroshinishio, You have 999999 requests left in this cycle which refreshes on 2026-07-26 04:23:16+00:00.
If you have any questions or concerns, please contact us at info@gitauto.ai.

@hiroshinishio hiroshinishio merged commit 2b42c16 into main Jul 26, 2025
2 of 3 checks passed
@hiroshinishio hiroshinishio deleted the wes branch July 26, 2025 05:13
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.

2 participants