Small fixes
This commit is contained in:
@@ -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}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 } })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user