From f05bb612d2f92fc394c1c8642f4c8871a682bc90 Mon Sep 17 00:00:00 2001 From: Yash S <119652212+yashmsonkusare@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:18:30 +0530 Subject: [PATCH] MOSIP-30099 Update MachineSpecificationService for the bug fix Signed-off-by: Yash S <119652212+yashmsonkusare@users.noreply.github.com> --- .../service/impl/MachineSpecificationServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/service/impl/MachineSpecificationServiceImpl.java b/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/service/impl/MachineSpecificationServiceImpl.java index 591a4c7b830..26db3a9ee31 100644 --- a/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/service/impl/MachineSpecificationServiceImpl.java +++ b/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/service/impl/MachineSpecificationServiceImpl.java @@ -124,7 +124,7 @@ public IdAndLanguageCodeID createMachineSpecification(MachineSpecificationDto ma try { - String uniqueId = generateId(); + String uniqueId = machineSpecification.getId() != null ? machineSpecification.getId() : generateId(); machineSpecification.setId(uniqueId); MachineSpecification entity = MetaDataUtils.setCreateMetaData(machineSpecification, MachineSpecification.class);