fix: undefined references
This commit is contained in:
1 parent
7e8fbf8fc3
commit
5afd0dfbab
1 file changed
+4
-7
@@ -70,7 +70,7 @@ class ProductSearchSubscriber {
|
|||||||
|
|
||||||
handleProductCreation = async (data) => {
|
handleProductCreation = async (data) => {
|
||||||
const product = await this.retrieveProduct_(data.id)
|
const product = await this.retrieveProduct_(data.id)
|
||||||
await this.searchService.addDocuments(
|
await this.searchService_.addDocuments(
|
||||||
ProductService.IndexName,
|
ProductService.IndexName,
|
||||||
[product],
|
[product],
|
||||||
indexTypes.products
|
indexTypes.products
|
||||||
@@ -86,7 +86,7 @@ class ProductSearchSubscriber {
|
|||||||
|
|
||||||
handleProductUpdate = async (data) => {
|
handleProductUpdate = async (data) => {
|
||||||
const product = await this.retrieveProduct_(data.id)
|
const product = await this.retrieveProduct_(data.id)
|
||||||
await this.meilisearchService_.addDocuments(
|
await this.searchService_.addDocuments(
|
||||||
ProductService.IndexName,
|
ProductService.IndexName,
|
||||||
[product],
|
[product],
|
||||||
indexTypes.products
|
indexTypes.products
|
||||||
@@ -94,15 +94,12 @@ class ProductSearchSubscriber {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleProductDeletion = async (data) => {
|
handleProductDeletion = async (data) => {
|
||||||
await this.meilisearchService_.deleteDocument(
|
await this.searchService_.deleteDocument(ProductService.IndexName, data.id)
|
||||||
ProductService.IndexName,
|
|
||||||
data.id
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleProductVariantChange = async (data) => {
|
handleProductVariantChange = async (data) => {
|
||||||
const product = await this.retrieveProduct_(data.product_id)
|
const product = await this.retrieveProduct_(data.product_id)
|
||||||
await this.meilisearchService_.addDocuments(
|
await this.searchService_.addDocuments(
|
||||||
ProductService.IndexName,
|
ProductService.IndexName,
|
||||||
[product],
|
[product],
|
||||||
indexTypes.products
|
indexTypes.products
|
||||||
|
|||||||
Reference in new issue
Block a user