Skip to content

Commit

Permalink
MOSIP-30099:Added the code to create the id as provided in the reques…
Browse files Browse the repository at this point in the history
…t and if not will generate new randomId

Signed-off-by: Yash S <[email protected]>
  • Loading branch information
yashmsonkusare committed Apr 5, 2024
1 parent 46b21fe commit 87cb0d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 87cb0d4

Please sign in to comment.