mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-02 01:00:33 -06:00
fix: product creation bug (#2768)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user