Skip to content

Commit 2b43592

Browse files
committed
updating addCartMutation so it finds cartItem with size and if it doesnt thn also create one
1 parent 6cfdf3b commit 2b43592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

customMutations/addToCartResolver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const addToCartResolver = async (
2020
where: {
2121
user: { equals: loggedInUserId },
2222
product: { equals: productId },
23+
size: { equals: size },
2324
},
2425
});
2526

0 commit comments

Comments
 (0)