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:
Jakub Bogucki
2025-07-27 15:04:22 +02:00
committed by GitHub
parent a6c1329da2
commit 6e66e36d08
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/core-flows": patch
---
fix(core-flows): createCustomerGroupsStep rollback delete created customer groups.

View File

@@ -35,6 +35,6 @@ export const createCustomerGroupsStep = createStep(
const service = container.resolve<ICustomerModuleService>(Modules.CUSTOMER)
await service.deleteCustomers(createdCustomerGroupIds)
await service.deleteCustomerGroups(createdCustomerGroupIds)
}
)