diff --git a/packages/medusa-plugin-contentful/src/api/routes/hooks/contentful.js b/packages/medusa-plugin-contentful/src/api/routes/hooks/contentful.js index d029c2c13f..7fb1392af5 100644 --- a/packages/medusa-plugin-contentful/src/api/routes/hooks/contentful.js +++ b/packages/medusa-plugin-contentful/src/api/routes/hooks/contentful.js @@ -21,7 +21,6 @@ export default async (req, res) => { res.status(200).send(updated) } catch (error) { - console.log(error) res.status(400).send(`Webhook error: ${error.message}`) } } diff --git a/packages/medusa/src/services/product.js b/packages/medusa/src/services/product.js index 975ed98070..6ba6dfbafe 100644 --- a/packages/medusa/src/services/product.js +++ b/packages/medusa/src/services/product.js @@ -81,7 +81,7 @@ class ProductService extends BaseService { * @param {string} productId - the id of the product to get variants from. * @return {Promise} an array of variants */ - async retrieveVariants(productId) {) + async retrieveVariants(productId) { const product = await this.retrieve(productId) return this.productVariantService_.list({ _id: { $in: product.variants } }) }