8942 - clear product-category cache on mutation (#194)

This commit is contained in:
Anders Gustafsson
2026-05-12 14:01:06 +02:00
committed by GitHub
parent c996cf53e0
commit e82457e45a
+2
View File
@@ -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);
}, },