From c39869a572a833d0c56500e89b72e41f72a918f4 Mon Sep 17 00:00:00 2001 From: "k.struzhkin" Date: Wed, 31 Mar 2021 15:09:01 +0300 Subject: [PATCH] Fix after review --- .../event/stock/impl/deposit/DepositTransferCreatedHandler.java | 2 +- .../impl/identity/IdentityChallengeStatusChangedHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rbkmoney/newway/handler/event/stock/impl/deposit/DepositTransferCreatedHandler.java b/src/main/java/com/rbkmoney/newway/handler/event/stock/impl/deposit/DepositTransferCreatedHandler.java index cd8914c..6fa330d 100644 --- a/src/main/java/com/rbkmoney/newway/handler/event/stock/impl/deposit/DepositTransferCreatedHandler.java +++ b/src/main/java/com/rbkmoney/newway/handler/event/stock/impl/deposit/DepositTransferCreatedHandler.java @@ -49,7 +49,7 @@ public class DepositTransferCreatedHandler implements DepositHandler { List 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)); diff --git a/src/main/java/com/rbkmoney/newway/handler/event/stock/impl/identity/IdentityChallengeStatusChangedHandler.java b/src/main/java/com/rbkmoney/newway/handler/event/stock/impl/identity/IdentityChallengeStatusChangedHandler.java index c65d8a6..35b0747 100644 --- a/src/main/java/com/rbkmoney/newway/handler/event/stock/impl/identity/IdentityChallengeStatusChangedHandler.java +++ b/src/main/java/com/rbkmoney/newway/handler/event/stock/impl/identity/IdentityChallengeStatusChangedHandler.java @@ -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(