fix(workflows-sdk): use loaded modules when container is empty (#7422)

This commit is contained in:
Carlos R. L. Rodrigues
2024-05-23 08:26:16 -03:00
committed by GitHub
parent 05077bab32
commit f3d19f5394
13 changed files with 15 additions and 154 deletions

View File

@@ -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.`
)