Skip to content
Snippets Groups Projects
Commit df773d90 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2566 OZG-2684 use relationVersion from command

parent 06975d90
Branches
Tags
No related merge requests found
......@@ -65,7 +65,7 @@ public class CommandRemoteService {
return GrpcCreateCommandRequest.newBuilder()
.setCallContext(contextService.createCallContext())
.setRelationId(command.getRelationId())
.setRelationVersion(-1)
.setRelationVersion(command.getRelationVersion())
.setVorgangId(command.getVorgangId())
.setOrder(GrpcOrder.valueOf(command.getOrder().name()))
.setBodyObj(objectMapper.fromMap(bodyMapper.mapToBodyMap(command, itemName)))
......
......@@ -272,7 +272,7 @@ class CommandRemoteServiceTest {
void shouldContainsRelationVersion() {
var request = buildRequest();
assertThat(request.getRelationVersion()).isEqualTo(-1);
assertThat(request.getRelationVersion()).isEqualTo(CommandTestFactory.RELATION_VERSION);
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment