Skip to content

Commit d12edff

Browse files
committed
Merge branch 'staging' of https://github.com/goldlabelapps/python into staging
2 parents f2a0100 + 75afd68 commit d12edff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/api/resend/utils/send_email.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
import httpx
33
import os
44

5-
RESEND_API_KEY = os.getenv("RESEND_API_KEY")
65
RESEND_API_URL = "https://api.resend.com/emails"
76

87
def send_email_resend(to: str, subject: str, html: str, sender: str) -> dict:
9-
if not RESEND_API_KEY:
8+
resend_api_key = os.getenv("RESEND_API_KEY")
9+
if not resend_api_key:
1010
return {"error": "Missing RESEND_API_KEY"}
1111
headers = {
12-
"Authorization": f"Bearer {RESEND_API_KEY}",
12+
"Authorization": f"Bearer {resend_api_key}",
1313
"Content-Type": "application/json"
1414
}
1515
payload = {

0 commit comments

Comments
 (0)