fix: register locking provider with its unique id (#11874)

This commit is contained in:
Harminder Virk authored and GitHub committed 2025-03-18 15:04:47 +05:30
1 parent 63330668ed
commit aa6d5aa3cf
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/locking": patch
---
fix: register locking provider with its unique id
@@ -30,7 +30,7 @@ const registrationFn = async (klass, container, { id }) => {
}) })
container.register({ container.register({
[LockingProviderRegistrationPrefix + key]: aliasTo(regKey), [LockingProviderRegistrationPrefix + id]: aliasTo(regKey),
}) })
container.registerAdd(LockingIdentifiersRegistrationName, asValue(key)) container.registerAdd(LockingIdentifiersRegistrationName, asValue(key))