Add warn for proportions mutation for product (#40)

This commit is contained in:
Niklas Fondberg
2021-09-13 15:27:28 +02:00
committed by GitHub
parent 84bed9a7ce
commit 0a786d6754
5 changed files with 81 additions and 7 deletions
+11
View File
@@ -129,6 +129,17 @@ export const productMutationTypeDefs = {
);
return (<ProductAPI>dataSources.productApi).getProduct(productId);
},
async productProportionsWarning(
_,
{ productId, proportions },
{ dataSources },
) {
await (<ProductAPI>dataSources.productApi).setProportionsWarning(
productId,
proportions,
);
return (<ProductAPI>dataSources.productApi).getProduct(productId);
},
async addOwnInteriorToPrintProduct(
_,
{ printId, uploadedS3Key },