Small fixes

This commit is contained in:
olivermrbl
2020-07-02 16:08:00 +02:00
parent 92ae54696d
commit e4f75be5ca
2 changed files with 1 additions and 2 deletions

View File

@@ -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}`)
}
}

View File

@@ -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 } })
}