fix: Ensure sales channel updates don't remove sales channel on other products (#7510)

* fix: Make all product tests pass

* fix: Ensure product update doesnt remove sales channels on other products
This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-05-28 18:24:27 +02:00
1 parent dbb23d20be
commit af7a885b5b
6 files changed
+190 -54

No files matched your search

@@ -42,6 +42,7 @@ export const AdminGetProductsParams = createFindParams({
.object({
variants: AdminGetProductVariantsParams.optional(),
price_list_id: z.string().array().optional(),
status: statusEnum.array().optional(),
$and: z.lazy(() => AdminGetProductsParams.array()).optional(),
$or: z.lazy(() => AdminGetProductsParams.array()).optional(),
})