mirror of
https://github.com/valitydev/newway.git
synced 2024-11-06 17:35:17 +00:00
Fix after review
This commit is contained in:
parent
b9943ef5ce
commit
c39869a572
@ -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));
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user