cal.pub0.org/apps/web/pages/api/teams/[team]
..
upgrade.ts