subscriptions keeps one row per user, keyed on user_id in _upsert. An event for a *different* sub of the same user (e.g. canceling a dangling past_due annual while a monthly trial is live) would overwrite the good row. Add a cross-subscription guard: another sub only takes over the row when the stored one is no longer live. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| alerts.py | ||
| auth.py | ||
| billing.py | ||
| config.py | ||
| database.py | ||
| emails.py | ||
| LICENSE | ||
| managed_keys.py | ||
| metering.py | ||
| models.py | ||
| oauth.py | ||
| social_profiles.py | ||
| storage.py | ||
| videos.py | ||