Skip to content

Commit

Permalink
Fix: account closure
Browse files Browse the repository at this point in the history
  • Loading branch information
GreRut committed Nov 11, 2024
1 parent a6fb496 commit dc0fafc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EventSourcing/AccountAggregate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ private void Apply(CurrencyChangeEvent currencyChange)

private void Apply(ClosureEvent closure)
{
if (AccountLog == null)
AccountLog = new List<LogMessage>();
var logMessage = new LogMessage("CLOSURE", closure.Reason.ToString(), closure.Timestamp);
AccountLog.Add(logMessage);
// if (AccountLog == null)
// AccountLog = new List<LogMessage>();
// var logMessage = new LogMessage("CLOSURE", closure.Reason.ToString(), closure.Timestamp);
// AccountLog.Add(logMessage);
Status = AccountStatus.Closed;
}
}

0 comments on commit dc0fafc

Please sign in to comment.