mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
0005ad013e
Summary: When an account is upgraded to a new product in Billing, send a message to the redis channel `billingAccount-${accountId}-product-changed`. ActiveDocs subscribe to this channel. When a message is received, they refresh their product from the database and use it to recalculate doc usage based on new limits. The new usage is broadcast to clients so they see the result of the upgrade live. Test Plan: Extended nbrowser Billing test to test that a document open in a separate tab has its limit banner cleared immediately on upgrade. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3480 |
||
---|---|---|
.. | ||
client | ||
common | ||
server | ||
tsconfig.json |