returning valid commandId for api actions when maker checker is enabled
This commit is contained in:
+2
-2
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user