The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
fix(template): drop product-level sales_channels in seed (#1235)
Viktor Holik7a05c05d4063
diff --git a/templates/basic/packages/api/src/scripts/seed.ts b/templates/basic/packages/api/src/scripts/seed.tsindex 4d2387bb3..a0c68fb95 100644--- a/templates/basic/packages/api/src/scripts/seed.ts+++ b/templates/basic/packages/api/src/scripts/seed.ts@@ -507,7 +507,6 @@ export default async function seedDemoData({ container }: ExecArgs) {{ title: "XL / Black", sku: "SHIRT-XL-BLACK", options: { Size: "XL", Color: "Black" } },{ title: "XL / White", sku: "SHIRT-XL-WHITE", options: { Size: "XL", Color: "White" } },],- sales_channels: [{ id: defaultSalesChannel[0].id }],},{title: "Basic Sweatshirt",@@ -533,7 +532,6 @@ export default async function seedDemoData({ container }: ExecArgs) {{ title: "L", sku: "SWEATSHIRT-L", options: { Size: "L" } },{ title: "XL", sku: "SWEATSHIRT-XL", options: { Size: "XL" } },],- sales_channels: [{ id: defaultSalesChannel[0].id }],},{title: "Basic Sweatpants",@@ -559,7 +557,6 @@ export default async function seedDemoData({ container }: ExecArgs) {{ title: "L", sku: "SWEATPANTS-L", options: { Size: "L" } },{ title: "XL", sku: "SWEATPANTS-XL", options: { Size: "XL" } },],- sales_channels: [{ id: defaultSalesChannel[0].id }],},{title: "Basic Shorts",@@ -585,7 +582,6 @@ export default async function seedDemoData({ container }: ExecArgs) {{ title: "L", sku: "SHORTS-L", options: { Size: "L" } },{ title: "XL", sku: "SHORTS-XL", options: { Size: "XL" } },],- sales_channels: [{ id: defaultSalesChannel[0].id }],},],},