chore(core-flows, medusa): cancel request return (#8153)

* fix(core-flow): request item return reason

* chore(core-flows): cancel request return
This commit is contained in:
Carlos R. L. Rodrigues
2024-07-17 09:35:46 +01:00
committed by GitHub
parent d4fe2daa57
commit 1acfdc4ffe
23 changed files with 263 additions and 28 deletions
@@ -434,11 +434,14 @@ export class RemoteJoiner {
})
if (notFound.size > 0) {
// TODO: This should say "entryPoint" resource not found and not "serviceName" resource not found
const entityName =
expand.serviceConfig.args?.entity ??
expand.serviceConfig.args?.methodSuffix ??
expand.serviceConfig.serviceName
throw new MedusaError(
MedusaError.Types.NOT_FOUND,
`${expand.serviceConfig.serviceName} ${pkField} not found: ` +
Array.from(notFound).join(", ")
`${entityName} ${pkField} not found: ` + Array.from(notFound).join(", ")
)
}
}