fix: Shipping profile deletion with options (#8910)

* fix(fulfillment): Prevent deletion of profiles associated to options

* add tests

* typo

* address feedback
This commit is contained in:
Adrien de Peretti
2024-08-30 17:04:29 +02:00
committed by GitHub
parent dea5af085a
commit 3da01035f3
3 changed files with 150 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ export function InjectTransactionManager(
: () => false
managerProperty = isString(shouldForceTransactionOrManagerProperty)
? shouldForceTransactionOrManagerProperty
: managerProperty
: managerProperty ?? "baseRepository_"
const argIndex = target.MedusaContextIndex_[propertyKey]
descriptor.value = async function (...args: any[]) {