mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-09-11 14:36:35 +03:00
🚑 fix resend invitation emails (#696)
This commit is contained in:
parent
8abd979ca2
commit
1f5443bd24
@ -13,7 +13,7 @@ class BrainSettings(BaseSettings):
|
||||
supabase_url: str
|
||||
supabase_service_key: str
|
||||
resend_api_key: str = "null"
|
||||
resend_email_address: str = "onboarding@resend.dev"
|
||||
resend_email_address: str = "brain@mail.quivr.app"
|
||||
|
||||
|
||||
class LLMSettings(BaseSettings):
|
||||
|
@ -1,7 +1,3 @@
|
||||
import os
|
||||
from typing import Optional
|
||||
from uuid import UUID
|
||||
|
||||
import resend
|
||||
from logger import get_logger
|
||||
from models.brains_subscription_invitations import BrainSubscription
|
||||
@ -24,7 +20,7 @@ def resend_invitation_email(brain_subscription: BrainSubscription, inviter_email
|
||||
|
||||
try:
|
||||
r = resend.Emails.send({
|
||||
"from": "onboarding@resend.dev",
|
||||
"from": brains_settings.resend_email_address,
|
||||
"to": brain_subscription.email,
|
||||
"subject": "Quivr - Brain Shared With You",
|
||||
"html": html_body
|
||||
|
Loading…
Reference in New Issue
Block a user