mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-27 10:09:30 -06:00
feat: adds product config (#2760)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
This commit is contained in:
@@ -101,7 +101,13 @@ export const POST = async (request: Request) => {
|
||||
if (isMultiOrgEnabled) {
|
||||
const organization = await createOrganization({ name: user.name + "'s Organization" });
|
||||
await createMembership(organization.id, user.id, { role: "owner", accepted: true });
|
||||
const product = await createProduct(organization.id, { name: "My Product" });
|
||||
const product = await createProduct(organization.id, {
|
||||
name: "My Product",
|
||||
config: {
|
||||
channel: null,
|
||||
industry: null,
|
||||
},
|
||||
});
|
||||
|
||||
const updatedNotificationSettings = {
|
||||
...user.notificationSettings,
|
||||
|
||||
Reference in New Issue
Block a user