diff --git a/src/controllers/units.controller.js b/src/controllers/units.controller.js index 1516c63e..f30adbd5 100644 --- a/src/controllers/units.controller.js +++ b/src/controllers/units.controller.js @@ -308,6 +308,9 @@ export const update = async (req, res) => { updatedRecord.issuance.id = uuidv4(); updatedRecord.issuance.orgUid = orgUid; } + } else { + updatedRecord.issuance = originalRecord.issuance; + updatedRecord.issuanceId = null; } // merge the new record into the old record