remove: console.log
This commit is contained in:
@@ -9,7 +9,6 @@ export default async (req, res) => {
|
|||||||
|
|
||||||
const { value, error } = schema.validate(req.body)
|
const { value, error } = schema.validate(req.body)
|
||||||
if (error) {
|
if (error) {
|
||||||
console.log({ error })
|
|
||||||
throw new MedusaError(MedusaError.Types.INVALID_DATA, error.details)
|
throw new MedusaError(MedusaError.Types.INVALID_DATA, error.details)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,9 +61,7 @@ class MeilisearchSubscriber {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleProductVariantChange = async (data) => {
|
handleProductVariantChange = async (data) => {
|
||||||
console.log({ change: data })
|
|
||||||
const product = await this.retrieveProduct_(data.product_id)
|
const product = await this.retrieveProduct_(data.product_id)
|
||||||
console.log(product.variants)
|
|
||||||
await this.meilisearchService_.addDocuments([product])
|
await this.meilisearchService_.addDocuments([product])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user