chore(): Handle medusa service base methods events (#9179)

* chore(): Handle medusa service base methods events

* cleanup

* cleanup

* fix import

* fix decorator order

* fixes

* apply default event emition

* fix binding

* fix binding

* align tests with new event emition
This commit is contained in:
Adrien de Peretti
2024-09-18 17:57:00 +02:00
committed by GitHub
parent 81d3ae01c7
commit a734184538
13 changed files with 290 additions and 116 deletions
@@ -1,12 +1,12 @@
import {
CommonEvents,
eventBuilderFactory,
moduleEventBuilderFactory,
Modules,
NotificationEvents,
} from "@medusajs/utils"
export const eventBuilders = {
createdNotification: eventBuilderFactory({
createdNotification: moduleEventBuilderFactory({
source: Modules.NOTIFICATION,
action: CommonEvents.CREATED,
object: "notification",