Invoice.paid reactivates all inactive paid relays, including manually deactivated relays
#8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When Stripe sends invoice.paid, the recovery logic reactivates every inactive paid relay for that tenant, not only relays deactivated due to non-payment.
Because relay state stores only active/inactive (no deactivation reason/source), manually deactivated relays are indistinguishable and get reactivated unexpectedly.
Primary Logic:
billing.rsSupporting State Model (no reason field):
0001_init.sqlExpected
Only relays deactivated specifically due to billing/non-payment should be auto-reactivated after payment.
Actual
All inactive paid relays are reactivated, including user-intentional manual deactivations.
Small code evidence
`Iinvoice.paid` reactivates all inactive paid relays, including manually deactivated relaysto `Invoice.paid` reactivates all inactive paid relays, including manually deactivated relays