fix: invite email template languages constant var (#2111)

This commit is contained in:
Benjamin 2024-01-21 12:22:59 +08:00 committed by GitHub
parent 22ab4721e2
commit 0695f08f05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@ def send_invite_member_mail_task(language: str, to: str, token: str, inviter_nam
try: try:
url = f'{current_app.config.get("CONSOLE_WEB_URL")}/activate?token={token}' url = f'{current_app.config.get("CONSOLE_WEB_URL")}/activate?token={token}'
if language == 'zh-CN': if language == 'zh-Hans':
html_content = render_template('invite_member_mail_template_zh-CN.html', html_content = render_template('invite_member_mail_template_zh-CN.html',
to=to, to=to,
inviter_name=inviter_name, inviter_name=inviter_name,