fix: custom link resolution in medusa app (#7950)
* fix custom link resolution in medusa app * improve * fix duplicate
This commit is contained in:
committed by
GitHub
parent
5544303b91
commit
f49139b20f
@@ -435,12 +435,6 @@ async function MedusaApp_({
|
||||
...(sharedResourcesConfig?.database ?? {}),
|
||||
}
|
||||
|
||||
const customLinks = MedusaModule.getCustomLinks().map((link) => {
|
||||
return typeof link === "function"
|
||||
? link(MedusaModule.getAllJoinerConfigs())
|
||||
: link
|
||||
})
|
||||
|
||||
if (revert) {
|
||||
revertLinkModuleMigration &&
|
||||
(await revertLinkModuleMigration(
|
||||
@@ -448,7 +442,7 @@ async function MedusaApp_({
|
||||
options: linkModuleOpt,
|
||||
injectedDependencies,
|
||||
},
|
||||
customLinks
|
||||
linkModules
|
||||
))
|
||||
} else {
|
||||
linkModuleMigration &&
|
||||
@@ -457,7 +451,7 @@ async function MedusaApp_({
|
||||
options: linkModuleOpt,
|
||||
injectedDependencies,
|
||||
},
|
||||
customLinks
|
||||
linkModules
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user