Skip to content

Commit

Permalink
ignore addEntitiesOtherRelationships for builtIn entities
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Mar 18, 2024
1 parent fa80e56 commit efddac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/server/support/relationship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ValidationResult } from '../../base/api.js';
// eslint-disable-next-line import/prefer-default-export
export const addEntitiesOtherRelationships = (entities: Entity[]): ValidationResult => {
const result: { warning: string[] } = { warning: [] };
for (const entity of entities) {
for (const entity of entities.filter(entity => !entity.builtIn)) {
for (const relationship of entity.relationships ?? []) {
if (
!relationship.otherRelationship &&
Expand Down

0 comments on commit efddac4

Please sign in to comment.