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:
1 parent
a6c1329da2
commit
6e66e36d08
2 files changed
+6
-1
No files matched your search
@@ -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)
|
const service = container.resolve<ICustomerModuleService>(Modules.CUSTOMER)
|
||||||
|
|
||||||
await service.deleteCustomers(createdCustomerGroupIds)
|
await service.deleteCustomerGroups(createdCustomerGroupIds)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user