@infrab4a/connect 4.2.4-beta.0 → 4.2.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +3 -1
- package/index.esm.js +3 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -4987,7 +4987,9 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4987
4987
|
objects: {
|
|
4988
4988
|
type: '[category_product_insert_input!]',
|
|
4989
4989
|
required: true,
|
|
4990
|
-
value: plainData.categories
|
|
4990
|
+
value: plainData.categories
|
|
4991
|
+
.filter((categoryId) => !product.categories.includes(categoryId))
|
|
4992
|
+
.map((categoryId) => ({ category_id: categoryId, product_id: productId })),
|
|
4991
4993
|
},
|
|
4992
4994
|
});
|
|
4993
4995
|
return plainData.categories;
|
package/index.esm.js
CHANGED
|
@@ -4981,7 +4981,9 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
4981
4981
|
objects: {
|
|
4982
4982
|
type: '[category_product_insert_input!]',
|
|
4983
4983
|
required: true,
|
|
4984
|
-
value: plainData.categories
|
|
4984
|
+
value: plainData.categories
|
|
4985
|
+
.filter((categoryId) => !product.categories.includes(categoryId))
|
|
4986
|
+
.map((categoryId) => ({ category_id: categoryId, product_id: productId })),
|
|
4985
4987
|
},
|
|
4986
4988
|
});
|
|
4987
4989
|
return plainData.categories;
|