fix(tenancy): use absolute URL in team invitation email link
Some checks failed
CI / ruff (push) Successful in 15s
CI / pytest (push) Has been cancelled
CI / validate (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled

Email clients need absolute URLs to make links clickable. The
acceptance_link was a relative path (/store/invitation/accept?token=...)
which rendered as plain text. Now prepends the platform domain with
the correct protocol.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 17:39:46 +02:00
parent 823935c016
commit 8a70259445
8 changed files with 124 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ def create_interaction(
interaction = interaction_service.create(
db,
prospect_id=prospect_id,
user_id=current_admin.user_id,
user_id=current_admin.id,
data=data.model_dump(exclude_none=True),
)
db.commit()