8942 - clear product-category cache on mutation (#194)
This commit is contained in:
@@ -583,6 +583,7 @@ export const productMutationTypeDefs = {
|
|||||||
productId,
|
productId,
|
||||||
categoryIds,
|
categoryIds,
|
||||||
);
|
);
|
||||||
|
await sendProductUpdatedEvent([productId], ['categories']);
|
||||||
return (<ProductAPI>dataSources.productApi).getProduct(productId);
|
return (<ProductAPI>dataSources.productApi).getProduct(productId);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -599,6 +600,7 @@ export const productMutationTypeDefs = {
|
|||||||
productId,
|
productId,
|
||||||
categoryIds,
|
categoryIds,
|
||||||
);
|
);
|
||||||
|
await sendProductUpdatedEvent([productId], ['categories']);
|
||||||
return (<ProductAPI>dataSources.productApi).getProduct(productId);
|
return (<ProductAPI>dataSources.productApi).getProduct(productId);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user