Fix after review

This commit is contained in:
k.struzhkin 2021-03-31 15:09:01 +03:00
parent b9943ef5ce
commit c39869a572
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public class DepositTransferCreatedHandler implements DepositHandler {
List<FinalCashFlowPosting> postings =
change.getTransfer().getPayload().getCreated().getTransfer().getCashflow().getPostings();
Deposit depositNew =
depositMachineEventCopyFactory.create(event, sequenceId, depositId, timestampedChange.getOccuredAt());
depositMachineEventCopyFactory.create(event, sequenceId, depositId, depositOld, timestampedChange.getOccuredAt());
depositNew.setDepositTransferStatus(DepositTransferStatus.created);
depositNew.setFee(FistfulCashFlowUtil.getFistfulFee(postings));
depositNew.setProviderFee(FistfulCashFlowUtil.getFistfulProviderFee(postings));

View File

@ -45,7 +45,7 @@ public class IdentityChallengeStatusChangedHandler implements IdentityHandler {
final Challenge challengeOld = challengeDao.get(identityId, challengeChange.getId());
Challenge challengeNew = challengeMachineEventCopyFactory
.create(event, sequenceId, identityId, timestampedChange.getOccuredAt());
.create(event, sequenceId, identityId, challengeOld, timestampedChange.getOccuredAt());
challengeNew.setChallengeId(challengeChange.getId());
challengeNew.setChallengeStatus(