BJ-782: Revision fix (#12)

This commit is contained in:
Pavel Popov 2020-02-03 18:36:43 +03:00 committed by GitHub
parent f90a570f26
commit 33250f72b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ public class ClaimManagementServiceImpl implements ClaimManagementService {
claimModel = claimRepository.saveAndFlush(claimModel);
Event claimEvent = claimEventFactory.createUpdateClaimEvent(partyId, claimId, revision, changeset, claimModel.getUpdatedAt());
Event claimEvent = claimEventFactory.createUpdateClaimEvent(partyId, claimId, claimModel.getRevision(), changeset, claimModel.getUpdatedAt());
sendToEventSinkWithRetry(partyId, claimEvent);
@ -214,7 +214,7 @@ public class ClaimManagementServiceImpl implements ClaimManagementService {
claimModel = claimRepository.save(claimModel);
Event claimEvent = claimEventFactory.createChangeStatusEvent(
partyId, claimId, revision,
partyId, claimId, claimModel.getRevision(),
conversionWrapperService.convertClaimStatus(claimModel.getClaimStatus()),
claimModel.getUpdatedAt()
);