feat: adds product config (#2760)

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
This commit is contained in:
Piyush Gupta
2024-06-13 18:21:02 +05:30
committed by GitHub
parent 543d85eb28
commit 4e6ab1c2bb
8 changed files with 138 additions and 3 deletions

View File

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