Skip to content

Commit

Permalink
fix(serializer): pass full field path down to single entity relations…
Browse files Browse the repository at this point in the history
…hips
  • Loading branch information
DASPRiD committed May 5, 2024
1 parent 87876e1 commit 807e741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class IncludedCollection<
}

if (!Array.isArray(entityRelationship)) {
this.addSingle(entityRelationship, field, options);
this.addSingle(entityRelationship, fullFieldPath, options);
continue;
}

Expand Down

0 comments on commit 807e741

Please sign in to comment.