Skip to content

Commit

Permalink
chore(resource serializer): fix defineRelationshipId after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Molinié committed Mar 6, 2020
1 parent 33e1a19 commit b4141a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serializers/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ function ResourceSerializer(
});
}

function defineRelationshipId(fields, goDeeper = true) {
const recordArray = _.isArray(records) ? records : [records];
function defineRelationshipId(innerRecords, fields, goDeeper = true) {
const recordArray = _.isArray(innerRecords) ? innerRecords : [innerRecords];
recordArray.forEach((record) => {
fields.forEach((field) => {
if (!field.reference) {
Expand Down

0 comments on commit b4141a8

Please sign in to comment.