Skip to content

Commit

Permalink
Oh that is why
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell committed Dec 9, 2024
1 parent 546f9cb commit fe27a5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib/hierarchy-operations/lineage-manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ const minifyLineagesInDoc = doc => {

if ('contact' in doc) {
doc.contact = minifyLineage(doc.contact);
if (doc.contact && !doc.contact.parent) {
delete doc.contact.parent; // for unit test clarity
}
}

if (doc.type === 'data_record') {
Expand Down
1 change: 1 addition & 0 deletions test/lib/hierarchy-operations/hierarchy-operations.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ describe('move-contacts', () => {
type: 'data_record',
contact: {
_id: 'dne',
parent: undefined,
},
fields: {
patient_uuid: 'district_1'
Expand Down

0 comments on commit fe27a5a

Please sign in to comment.