cal.pub0.org/apps/web/ee/components
Omar López 0a8509d721
Admin/team billing downgrader (#2040)
* downgrade func

* fix security hole lol

* fix query conditions

* - set to trial not free
- auto create stripe customer if missing
- fix production check

* Extracts downgrade logic to script, fixes ts-node conflicts with prisma

* Adds trialEndsAt field to users

* Updates trial/downgrade logic

* Typo

* Legibility fixes

* Update team-billing.ts

* Legibility improvements

Co-authored-by: Jamie <ijamespine@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-03 19:29:19 +00:00
..
saml Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
stripe Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
team/availability Runs prettier 2022-02-10 14:22:45 -07:00
web3 Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
LicenseBanner.tsx updated license url (#1820) 2022-02-11 20:55:46 +00:00
TrialBanner.tsx Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00