47: refactor interiors mutation to handle uri (#48)

* 47: refactor interiors mutation to handle uri

* removed log
This commit is contained in:
Arwid Thornström
2021-09-17 15:40:50 +02:00
committed by GitHub
parent 042a3ed0fa
commit 613ec8aad0
3 changed files with 36 additions and 29 deletions
+2 -2
View File
@@ -125,13 +125,13 @@ export const productMutationTypeDefs = {
},
async productGroupInteriors(
_,
{ productId, groupId, roomNames },
{ productId, groupId, uris },
{ dataSources },
) {
await (<ProductAPI>dataSources.productApi).addInteriorsToProductGroup(
productId,
groupId,
roomNames,
uris,
);
return (<ProductAPI>dataSources.productApi).getProduct(productId);
},