chore: 🔥 Remove ownerIds
This commit is contained in:
@ -34,7 +34,6 @@ export function CustomAdapter(p: PrismaClient): Adapter {
|
||||
...data,
|
||||
id: user.id,
|
||||
apiToken: randomUUID(),
|
||||
plan: process.env.ADMIN_EMAIL === data.email ? Plan.PRO : Plan.FREE,
|
||||
workspaces:
|
||||
workspaceInvitations.length > 0
|
||||
? undefined
|
||||
|
@ -81,7 +81,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
'blocks' in data
|
||||
? data
|
||||
: (parseNewTypebot({
|
||||
ownerId: user.id,
|
||||
ownerAvatarUrl: user.image,
|
||||
...data,
|
||||
}) as Prisma.TypebotUncheckedCreateInput),
|
||||
|
@ -24,7 +24,7 @@ const DashboardPage = () => {
|
||||
|
||||
useEffect(() => {
|
||||
const subscribePlan = query.subscribePlan as 'pro' | 'team' | undefined
|
||||
if (workspace && subscribePlan && user && user.plan === 'FREE') {
|
||||
if (workspace && subscribePlan && user && workspace.plan === 'FREE') {
|
||||
setIsLoading(true)
|
||||
pay({
|
||||
user,
|
||||
|
Reference in New Issue
Block a user