Skip to content

Commit

Permalink
fix: Remove log for read only links (#7410)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl committed May 22, 2024
1 parent 4ee47cf commit 9a10adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/modules/link-modules/src/utils/generate-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function generateGraphQLSchema(
let extendedEntityName =
extJoinerConfig?.linkableKeys?.[extend.relationship.foreignKey]!

if (!extendedEntityName && (!primary || !foreign)) {
if (!isReadOnlyLink && !extendedEntityName && (!primary || !foreign)) {
logger.warn(
`Link modules schema: No linkable key found for ${extend.relationship.foreignKey} on module ${extend.relationship.serviceName}.`
)
Expand Down

0 comments on commit 9a10adf

Please sign in to comment.