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
  • Loading branch information
yashmsonkusare committed Apr 4, 2024
1 parent 73de76a commit 0de7303
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 0de7303

Please sign in to comment.