fix(core-flows): fix emitted event for deleting sales channel (#9081)
Fix the usage of the user event instead of sales channel event
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Modules, UserWorkflowEvents } from "@medusajs/utils"
|
||||
import { Modules, SalesChannelWorkflowEvents } from "@medusajs/utils"
|
||||
import {
|
||||
createWorkflow,
|
||||
transform,
|
||||
@@ -32,7 +32,7 @@ export const deleteSalesChannelsWorkflow = createWorkflow(
|
||||
})
|
||||
|
||||
emitEventStep({
|
||||
eventName: UserWorkflowEvents.DELETED,
|
||||
eventName: SalesChannelWorkflowEvents.DELETED,
|
||||
data: salesChannelsIdEvents,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user