fix(email): set EmailTypeVerify in task payload and update content type conversion for verification email

This commit is contained in:
Chang lue Tsen
2025-08-21 09:07:48 -04:00
parent 5e903868c4
commit 38706c0b29
2 changed files with 5 additions and 1 deletions
@@ -86,6 +86,7 @@ func (l *SendEmailCodeLogic) SendEmailCode(req *types.SendCodeRequest) (resp *ty
var taskPayload queue.SendEmailPayload
// Generate verification code
code := random.Key(6, 0)
taskPayload.Type = queue.EmailTypeVerify
taskPayload.Email = req.Email
taskPayload.Subject = "Verification code"
taskPayload.Content = map[string]interface{}{