Merge remote-tracking branch 'origin' into chuck/web-2435-move-comments-and-webhooks-without-attachments
This commit is contained in:
@@ -206,6 +206,7 @@ import { sendWorkspaceJoinRequestReceivedEmailFactory } from '@/modules/workspac
|
||||
import { getProjectFactory } from '@/modules/core/repositories/projects'
|
||||
import { OperationTypeNode } from 'graphql'
|
||||
import { updateWorkspacePlanFactory } from '@/modules/gatekeeper/services/workspacePlans'
|
||||
import { UserInputError } from '@/modules/core/errors/userinput'
|
||||
|
||||
const eventBus = getEventBus()
|
||||
const getServerInfo = getServerInfoFactory({ db })
|
||||
@@ -294,7 +295,8 @@ const updateStreamRoleAndNotify = updateStreamRoleAndNotifyFactory({
|
||||
const getUserStreams = getUserStreamsPageFactory({ db })
|
||||
const getUserStreamsCount = getUserStreamsCountFactory({ db })
|
||||
|
||||
const { FF_WORKSPACES_MODULE_ENABLED } = getFeatureFlags()
|
||||
const { FF_WORKSPACES_MODULE_ENABLED, FF_WORKSPACES_NEW_PLANS_ENABLED } =
|
||||
getFeatureFlags()
|
||||
|
||||
export = FF_WORKSPACES_MODULE_ENABLED
|
||||
? ({
|
||||
@@ -496,6 +498,12 @@ export = FF_WORKSPACES_MODULE_ENABLED
|
||||
default:
|
||||
throwUncoveredError(workspacePlan)
|
||||
}
|
||||
case 'free':
|
||||
if (FF_WORKSPACES_NEW_PLANS_ENABLED) {
|
||||
break
|
||||
} else {
|
||||
throw new UserInputError('Workspace plan not implemented')
|
||||
}
|
||||
case 'unlimited':
|
||||
case 'academia':
|
||||
case 'starterInvoiced':
|
||||
|
||||
Reference in New Issue
Block a user