Skip to content

Commit

Permalink
fix: handle inherited relations insert order (#9321)
Browse files Browse the repository at this point in the history
Fix forgot comparison operator in #9242

Closes: #9241

Co-authored-by: Kevin KONRAD <ext.kevin.konrad@reseau.sncf.fr>
  • Loading branch information
konradkevin and Kevin KONRAD committed Aug 25, 2022
1 parent 7198a7a commit 3671887
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/persistence/SubjectTopoligicalSorter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export class SubjectTopoligicalSorter {
const entityTargetSubjects = this.subjects.filter(
(subject) =>
subject.metadata.targetName === sortedEntityTarget ||
subject.metadata.parentEntityMetadata?.targetName,
subject.metadata.parentEntityMetadata?.targetName ===
sortedEntityTarget,
)
sortedSubjects.push(...entityTargetSubjects)
this.removeAlreadySorted(entityTargetSubjects)
Expand Down

0 comments on commit 3671887

Please sign in to comment.