Skip to content

Commit

Permalink
Merge pull request #72 from tom0827/rejected_email
Browse files Browse the repository at this point in the history
add verification token in for rejection email
  • Loading branch information
tom0827 authored Jul 5, 2024
2 parents 0dd1301 + 1d7ab36 commit 82ee9d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions met-api/src/met_api/services/email_verification_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def create(cls, email_verification: EmailVerificationSchema,
verification_token = uuid.uuid4()
EmailVerification.create({**email_verification, 'verification_token': verification_token}, session)

if email_verification.get('type', None) == EmailVerificationType.RejectedComment:
email_verification['verification_token'] = verification_token

# TODO: remove this once email logic is brought over from submission service to here
if email_verification.get('type', None) != EmailVerificationType.RejectedComment:
cls._send_verification_email(
Expand Down

0 comments on commit 82ee9d5

Please sign in to comment.