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

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

No files matched your search

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