fix(workflows-sdk): use loaded modules when container is empty (#7422)
This commit is contained in:
committed by
GitHub
parent
05077bab32
commit
f3d19f5394
@@ -244,18 +244,6 @@ export class RemoteJoiner {
|
||||
{ fieldAlias, relationships },
|
||||
] of expandedRelationships) {
|
||||
if (!this.serviceConfigCache.has(serviceName)) {
|
||||
// If true, the relationship is an internal service from the medusa core
|
||||
// If modules are being used ouside of the core, we should not be throwing
|
||||
// errors when the core services are not found in cache.
|
||||
// TODO: Remove when there are no more "internal" services
|
||||
const isInternalServicePresent = relationships.some(
|
||||
(rel) => rel.isInternalService === true
|
||||
)
|
||||
|
||||
if (isInternalServicePresent) {
|
||||
continue
|
||||
}
|
||||
|
||||
throw new Error(`Service "${serviceName}" was not found`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user