diff --git a/met-api/src/met_api/services/email_verification_service.py b/met-api/src/met_api/services/email_verification_service.py index 425451717..0d6c7ba0a 100644 --- a/met-api/src/met_api/services/email_verification_service.py +++ b/met-api/src/met_api/services/email_verification_service.py @@ -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(