fix: register locking provider with its unique id (#11874)
This commit is contained in:
1 parent
63330668ed
commit
aa6d5aa3cf
2 files changed
+6
-1
No files matched your search
@@ -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))
|
||||||
|
|||||||
Reference in new issue
Block a user