Skip to content

Commit

Permalink
Cares only
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell committed Feb 1, 2024
1 parent 2ae9a5b commit 6629688
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/fn/move-contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,15 @@ const moveReports = async (db, descendantsAndSelf, writeOptions, mergeIntoId, co
report.fields.patient_uuid = mergeIntoId;
}

writeDocumentToDisk(writeOptions, report);
if (report.form === 'integration') {
writeDocumentToDisk(writeOptions, {
_id: report._id,
_rev: report._rev,
_deleted: true,
});
} else {
writeDocumentToDisk(writeOptions, report);
}
});

skip += reportDocsBatch.length;
Expand Down

0 comments on commit 6629688

Please sign in to comment.