fix: product creation bug (#2768)

This commit is contained in:
Piyush Gupta
2024-06-14 10:42:48 +05:30
committed by GitHub
parent 4e6ab1c2bb
commit ebed950392
2 changed files with 4 additions and 4 deletions

View File

@@ -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 = {

View File

@@ -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,