gergo/web 2428 academia should be free business (#3831)

* feat(server): workspace shoul equal unpaid business

* feat(server): add free workspace plans

* feat(gatekeeper): rename plans to invoiced
This commit is contained in:
Gergő Jedlicska
2025-01-16 10:21:59 +01:00
committed by GitHub
parent ef0c800ba5
commit 35bc6918cb
7 changed files with 41 additions and 5 deletions
@@ -484,6 +484,9 @@ export = FF_WORKSPACES_MODULE_ENABLED
case WorkspacePlans.Academia:
case WorkspacePlans.Unlimited:
case WorkspacePlans.StarterInvoiced:
case WorkspacePlans.PlusInvoiced:
case WorkspacePlans.BusinessInvoiced:
switch (status) {
case WorkspacePlanStatuses.Valid:
await upsertUnpaidWorkspacePlanFactory({ db })({
@@ -565,6 +568,9 @@ export = FF_WORKSPACES_MODULE_ENABLED
}
case 'unlimited':
case 'academia':
case 'starterInvoiced':
case 'plusInvoiced':
case 'businessInvoiced':
break
default:
throwUncoveredError(workspacePlan)