Skip to content

Commit

Permalink
Fixed: missing label in dataReceived
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqkhoja committed Oct 24, 2023
1 parent f682891 commit fa212c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/query/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const _updateEntity = (dataset, entityData, submissionId, submissionDef, submiss
def: new Entity.Def({
data: mergedData,
label: mergedLabel,
dataReceived: clientEntity.def.data,
dataReceived: clientEntity.def.dataReceived,
conflictingProperties
})
});
Expand Down
1 change: 1 addition & 0 deletions test/integration/api/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ describe('Entities API', () => {
const { currentVersion } = person;
currentVersion.data.should.eql({ age: '99', first_name: 'Alice' });
currentVersion.label.should.eql('Alicia - 85');
currentVersion.dataReceived.should.eql({ label: 'Alicia - 85' });
currentVersion.version.should.equal(3);
currentVersion.conflictingProperties.should.be.eql([]);
});
Expand Down

0 comments on commit fa212c2

Please sign in to comment.