Skip to content

Commit

Permalink
Remove incorrect command to delete record from entity table
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcameron committed Dec 10, 2020
1 parent 55766ca commit 110af5d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/controllers/medical/patients/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ router.post('/', async (req, res, next) => {
const removeOtherPatients = `
DELETE FROM patient WHERE uuid IN (?);
`;
const removeOtherEntities = `
DELETE FROM entity WHERE uuid IN (?);
`;
const removeOtherEntityMap = `
DELETE FROM entity_map WHERE uuid IN (?);
`;
Expand Down Expand Up @@ -168,7 +165,6 @@ router.post('/', async (req, res, next) => {
.addQuery(replacePatientInStockMovement, [debtorUuid, [otherDebtorUuids]])

.addQuery(removeOtherDebtors, [otherDebtorUuids])
.addQuery(removeOtherEntities, [otherDebtorUuids])
.addQuery(removeOtherEntityMap, [otherDebtorUuids])
.addQuery(removeOtherPatients, [otherPatientUuids]);

Expand Down

0 comments on commit 110af5d

Please sign in to comment.