feat(medusa): Allow to query order/product by SC (#1867)
**What** Allow to query the products and orders by sales channels **How** Updating the existing end points and repositories (if necessary) to take a new query params that is sales_channel_id as an array of string **Tests** Add new integration tests Fixes CORE-295 Fixes CORE-288
This commit is contained in:
@@ -146,7 +146,7 @@ export class Product extends SoftDeletableEntity {
|
||||
metadata: Record<string, unknown> | null
|
||||
|
||||
@FeatureFlagDecorators("sales_channels", [
|
||||
ManyToMany(() => SalesChannel, { cascade: true }),
|
||||
ManyToMany(() => SalesChannel, { cascade: ["remove", "soft-remove"] }),
|
||||
JoinTable({
|
||||
name: "product_sales_channel",
|
||||
joinColumn: {
|
||||
|
||||
Reference in New Issue
Block a user