fix: update event
This commit is contained in:
1 parent
cec1523e0c
commit
6d21d0d398
1 file changed
+4
-3
@@ -1,3 +1,4 @@
|
|||||||
|
import ProductVariantService from "../services/product-variant"
|
||||||
import ProductService from "../services/product"
|
import ProductService from "../services/product"
|
||||||
import { indexTypes } from "medusa-core-utils"
|
import { indexTypes } from "medusa-core-utils"
|
||||||
|
|
||||||
@@ -52,17 +53,17 @@ class ProductSearchSubscriber {
|
|||||||
)
|
)
|
||||||
|
|
||||||
this.eventBus_.subscribe(
|
this.eventBus_.subscribe(
|
||||||
"product-variant.created",
|
ProductVariantService.Events.CREATED,
|
||||||
this.handleProductVariantChange
|
this.handleProductVariantChange
|
||||||
)
|
)
|
||||||
|
|
||||||
this.eventBus_.subscribe(
|
this.eventBus_.subscribe(
|
||||||
"product-variant.updated",
|
ProductVariantService.Events.UPDATED,
|
||||||
this.handleProductVariantChange
|
this.handleProductVariantChange
|
||||||
)
|
)
|
||||||
|
|
||||||
this.eventBus_.subscribe(
|
this.eventBus_.subscribe(
|
||||||
"product-variant.deleted",
|
ProductVariantService.Events.DELETED,
|
||||||
this.handleProductVariantChange
|
this.handleProductVariantChange
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user