@reactioncommerce/api-plugin-carts
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "@reactioncommerce/api-plugin-carts", | ||
"description": "Carts plugin for the Reaction API", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "type": "module", |
@@ -17,3 +17,3 @@ import Logger from "@reactioncommerce/logger"; | ||
export default async function transformAndValidateCart(context, cart) { | ||
const cartSchema = context.simpleSchemas.Cart; | ||
const { simpleSchemas: { Cart: cartSchema } } = context; | ||
updateCartFulfillmentGroups(context, cart); | ||
@@ -20,0 +20,0 @@ |
@@ -23,3 +23,6 @@ import hashToken from "@reactioncommerce/api-utils/hashToken.js"; | ||
return Cart.findOne({ $or: [{ _id: cartId }, { anonymousAccessToken: hashToken(cartToken) }] }); | ||
return Cart.findOne({ | ||
_id: cartId, | ||
anonymousAccessToken: hashToken(cartToken) | ||
}); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
224067
100
4348