Skip to content

Commit

Permalink
encode last part relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Oct 20, 2020
1 parent 16bff4c commit eee4ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (w *Writer) createLastPartRelationships() error {
}
for _, r := range w.last.Relationships {
if r.ID == "" {
r.ID = newRelationshipID(w.Relationships)
r.ID = newRelationshipID(w.last.Relationships)
}
}
if err := validateRelationships(w.last.Name, w.last.Relationships); err != nil {
Expand Down

0 comments on commit eee4ec7

Please sign in to comment.