diff --git a/src/controllers/units.controller.js b/src/controllers/units.controller.js index 47150293..1516c63e 100644 --- a/src/controllers/units.controller.js +++ b/src/controllers/units.controller.js @@ -303,8 +303,7 @@ export const update = async (req, res) => { // if we are reusing a record, make sure it exists await assertRecordExistance(Issuance, updatedRecord.issuance.id); updatedRecord.issuanceId = updatedRecord.issuance.id; - - delete updatedRecord.issuance; + updatedRecord.issuance.orgUid = orgUid; } else { updatedRecord.issuance.id = uuidv4(); updatedRecord.issuance.orgUid = orgUid;