Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/airweave/api/v1/endpoints/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,10 @@ async def _notify_donke_signup(
# Simple HTTP call to Donke (uses Azure app key)
async with httpx.AsyncClient() as client:
await client.post(
f"{settings.DONKE_URL}/api/notify-signup?code={settings.DONKE_API_KEY}",
f"{settings.DONKE_URL}/api/notify-signup",
headers={
"Content-Type": "application/json",
"x-functions-key": settings.DONKE_API_KEY,
},
json={
"organization_name": organization.name,
Expand Down
6 changes: 4 additions & 2 deletions backend/airweave/billing/webhook_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,10 @@ async def _notify_donke_subscription(
try:
async with httpx.AsyncClient() as client:
await client.post(
f"{settings.DONKE_URL}/api/notify-subscription?code={settings.DONKE_API_KEY}",
f"{settings.DONKE_URL}/api/notify-subscription",
headers={
"Content-Type": "application/json",
"x-functions-key": settings.DONKE_API_KEY,
},
json={
"organization_name": org.name,
Expand Down Expand Up @@ -1012,9 +1013,10 @@ async def _send_team_welcome_email(
# Call Donke to send the welcome email
async with httpx.AsyncClient() as client:
await client.post(
f"{settings.DONKE_URL}/api/send-team-welcome-email?code={settings.DONKE_API_KEY}",
f"{settings.DONKE_URL}/api/send-team-welcome-email",
headers={
"Content-Type": "application/json",
"x-functions-key": settings.DONKE_API_KEY,
},
json={
"organization_name": org.name,
Expand Down
Loading