Skip to content

Commit

Permalink
feat: 🚸 Grant team plan for admin on new workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 18, 2022
1 parent 48a4976 commit d991dd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/builder/pages/api/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
data: {
...data,
members: { create: [{ role: 'ADMIN', userId: user.id }] },
plan: process.env.ADMIN_EMAIL === user.email ? 'TEAM' : 'FREE',
},
})
return res.status(200).json({
Expand Down

5 comments on commit d991dd5

@vercel
Copy link

@vercel vercel bot commented on d991dd5 Jun 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d991dd5 Jun 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d991dd5 Jun 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d991dd5 Jun 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs.typebot.io
docs-git-main-typebot-io.vercel.app
docs-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on d991dd5 Jun 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.