diff --git a/apps/web/app/api/v1/users/route.ts b/apps/web/app/api/v1/users/route.ts index c88984d329..5690282c95 100644 --- a/apps/web/app/api/v1/users/route.ts +++ b/apps/web/app/api/v1/users/route.ts @@ -103,10 +103,6 @@ export const POST = async (request: Request) => { await createMembership(organization.id, user.id, { role: "owner", accepted: true }); const product = await createProduct(organization.id, { name: "My Product", - config: { - channel: null, - industry: null, - }, }); const updatedNotificationSettings = { diff --git a/packages/lib/product/service.ts b/packages/lib/product/service.ts index 4f82e4dd36..92679006d2 100644 --- a/packages/lib/product/service.ts +++ b/packages/lib/product/service.ts @@ -254,6 +254,10 @@ export const createProduct = async ( try { let product = await prisma.product.create({ data: { + config: { + channel: null, + industry: null, + }, ...data, name: productInput.name, organizationId,