Merge pull request #699 from ashok-conflux/MIFOSX-830

returning valid commandId for api actions when maker checker is enabled
This commit is contained in:
Vishwas Babu A J
2013-12-17 06:53:34 -08:00
@@ -93,10 +93,10 @@ public class SynchronousCommandProcessingService implements CommandProcessingSer
@Transactional @Transactional
@Override @Override
public CommandProcessingResult logCommand(final CommandSource commandSourceResult) { public CommandProcessingResult logCommand(CommandSource commandSourceResult) {
commandSourceResult.markAsAwaitingApproval(); commandSourceResult.markAsAwaitingApproval();
this.commandSourceRepository.save(commandSourceResult); commandSourceResult = this.commandSourceRepository.save(commandSourceResult);
return new CommandProcessingResultBuilder().withCommandId(commandSourceResult.getId()) return new CommandProcessingResultBuilder().withCommandId(commandSourceResult.getId())
.withEntityId(commandSourceResult.getResourceId()).build(); .withEntityId(commandSourceResult.getResourceId()).build();