collab: Add POST /users/:id/update_plan endpoint (#34953)

This PR adds a new `POST /users/:id/update_plan` endpoint to Collab to
allow Cloud to push down plan updates to users.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-07-23 10:30:08 -04:00 committed by GitHub
parent 326ab5fa3f
commit 14171e0721
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 101 additions and 10 deletions

View file

@ -785,7 +785,7 @@ async fn handle_customer_subscription_event(
// When the user's subscription changes, push down any changes to their plan.
rpc_server
.update_plan_for_user(billing_customer.user_id)
.update_plan_for_user_legacy(billing_customer.user_id)
.await
.trace_err();