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
@@ -21,7 +21,6 @@ export default async (req, res) => {
res.status(200).send(updated) res.status(200).send(updated)
} catch (error) { } catch (error) {
console.log(error)
res.status(400).send(`Webhook error: ${error.message}`) res.status(400).send(`Webhook error: ${error.message}`)
} }
} }
+1 -1
View File
@@ -81,7 +81,7 @@ class ProductService extends BaseService {
* @param {string} productId - the id of the product to get variants from. * @param {string} productId - the id of the product to get variants from.
* @return {Promise} an array of variants * @return {Promise} an array of variants
*/ */
async retrieveVariants(productId) {) async retrieveVariants(productId) {
const product = await this.retrieve(productId) const product = await this.retrieve(productId)
return this.productVariantService_.list({ _id: { $in: product.variants } }) return this.productVariantService_.list({ _id: { $in: product.variants } })
} }