Skip to content

Commit

Permalink
code improement
Browse files Browse the repository at this point in the history
  • Loading branch information
hkf-tech committed Jul 6, 2021
1 parent 122ec8e commit 5c8b341
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ protected override async Task HandleCore(RefreshAccountTransfersCommand message)
ApprenticeshipId = firstGroupItem.ApprenticeshipId,
ReceiverAccountId = firstGroupItem.ReceiverAccountId,
// assumption we are not getting this information back from payment, that is why we are getting it again from the local db
ReceiverAccountName = firstGroupItem.ReceiverAccountName,
ReceiverAccountName = !string.IsNullOrWhiteSpace(firstGroupItem.ReceiverAccountName) ? firstGroupItem.ReceiverAccountName : "RXX",
SenderAccountId = firstGroupItem.SenderAccountId,
// assumption we are not getting this information back from payment, that is why we are getting it again from the local db
SenderAccountName = firstGroupItem.SenderAccountName,
SenderAccountName = !string.IsNullOrWhiteSpace(firstGroupItem.SenderAccountName) ? firstGroupItem.SenderAccountName : "SXX",
Type = firstGroupItem.Type
// Not mapping the RequiredPaymentId - I assume this is not required, but we are trying to insert it into the transfers table.
};
Expand Down

0 comments on commit 5c8b341

Please sign in to comment.