fix(core-flows): createCustomerGroupsStep, delete created customer groups (#13056)
* fix: createCustomerGroupsStep rollback delete created customer groups instead of customers * Create serious-seahorses-switch.md --------- Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
This commit is contained in:
5
.changeset/serious-seahorses-switch.md
Normal file
5
.changeset/serious-seahorses-switch.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/core-flows": patch
|
||||
---
|
||||
|
||||
fix(core-flows): createCustomerGroupsStep rollback delete created customer groups.
|
||||
@@ -35,6 +35,6 @@ export const createCustomerGroupsStep = createStep(
|
||||
|
||||
const service = container.resolve<ICustomerModuleService>(Modules.CUSTOMER)
|
||||
|
||||
await service.deleteCustomers(createdCustomerGroupIds)
|
||||
await service.deleteCustomerGroups(createdCustomerGroupIds)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user