fix(workflows-sdk): use loaded modules when container is empty (#7422)
This commit is contained in:
committed by
GitHub
parent
05077bab32
commit
f3d19f5394
@@ -32,11 +32,7 @@ export function generateGraphQLSchema(
|
||||
|
||||
for (const extend of joinerConfig.extends ?? []) {
|
||||
const extendedModule = MedusaModule.getModuleInstance(extend.serviceName)
|
||||
if (
|
||||
!isReadOnlyLink &&
|
||||
!extendedModule &&
|
||||
!extend.relationship.isInternalService
|
||||
) {
|
||||
if (!extendedModule) {
|
||||
throw new Error(
|
||||
`Module ${extend.serviceName} not found. Please verify that the module is configured and installed, also the module must be loaded before the link modules.`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user