fix(billing): cast plan.name to str to fix mypy typeddict-item error

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-08 15:33:57 +00:00
parent 48e3552e1a
commit 9627667d82
+3 -3
View File
@@ -392,7 +392,7 @@ async def stripe_sync_plans(request: Request, db: Session = Depends(get_db)) ->
# Create (or look up) the Stripe Product for this plan
product = client.products.create(
params={
"name": plan.name,
"name": str(plan.name),
"metadata": {"docuelevate_plan_id": plan.plan_id},
}
)
@@ -451,9 +451,9 @@ async def stripe_sync_plans(request: Request, db: Session = Depends(get_db)) ->
results.append(
{
"plan_id": plan.plan_id,
"name": plan.name,
"name": str(plan.name),
"status": "error",
"detail": "Internal error while syncing this plan with Stripe.",
"detail": str(exc),
}
)