Billing - Fix subscription_schedule release (#16669)
At subscription_schedule released, a subscription_schedule.update event
is received in webhook stripe controller but not handled. [Sentry event
example
](https://twenty-v7.sentry.io/issues/6606854024/events/e737c528a55048e5981756a4fad9028f/)
Payload example ⬇️
```
{
"object": {
"id": "sub_sched_1SfeABHDlIZyMfEDBhgJUCN2",
"object": "subscription_schedule",
....
"phases": [
{
"add_invoice_items": [],
"application_fee_percent": null,
"automatic_tax": {
"disabled_reason": null,
"enabled": false,
"liability": null
},
"billing_cycle_anchor": null,
"billing_thresholds": {
"amount_gte": 10000,
"reset_billing_cycle_anchor": false
},
"collection_method": "charge_automatically",
"coupon": null,
"currency": "usd",
"default_payment_method": null,
"default_tax_rates": [],
"description": null,
"discounts": [],
"end_date": 1768731003,
"invoice_settings": {
"account_tax_ids": null,
"days_until_due": null,
"issuer": {
"type": "self"
}
},
"items": [
{
"billing_thresholds": null,
"discounts": [],
"metadata": {},
"plan": "price_1SChAfHDlIZyMfEDCP3pGHHv",
"price": "price_1SChAfHDlIZyMfEDCP3pGHHv",
"quantity": 1,
"tax_rates": []
},
{
"billing_thresholds": null,
"discounts": [],
"metadata": {},
"plan": "price_1SChAaHDlIZyMfEDkGCDIIjm",
"price": "price_1SChAaHDlIZyMfEDkGCDIIjm",
"tax_rates": []
}
],
"metadata": {},
"on_behalf_of": null,
"proration_behavior": "none",
"start_date": 1766053422,
"transfer_data": null,
"trial_end": null
}
],
"released_at": 1768731003,
"released_subscription": "sub_1Sfe0oHDlIZyMfEDs1lYui6v", // here !
"subscription": null,
"test_clock": "clock_1SfeT1HDlIZyMfEDNnlhPmOM"
},
"previous_attributes": {
"released_subscription": null,
"subscription": "sub_1Sfe0oHDlIZyMfEDs1lYui6v"
}
}
```
related to https://github.com/twentyhq/twenty/issues/16573