Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
epandurski committed Oct 13, 2023
1 parent 24ceea3 commit 93efb88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions swpt_creditors/procedures/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,11 @@ def _log_account_deletion(
is_deleted=True,
)

# NOTE: When an account has been deleted, notification messages must be
# sent to the subsystem that performs automatic circular trades. These
# are otherwise regular notifications, but they contain the default safe
# values for all of the fields. (The default values forbid all automatic
# circular trades for the account.)
db.session.add(UpdatedLedgerSignal(
creditor_id=creditor_id,
debtor_id=debtor_id,
Expand All @@ -615,7 +620,6 @@ def _log_account_deletion(
last_transfer_number=0,
ts=current_ts,
))

db.session.add(UpdatedPolicySignal(
creditor_id=creditor_id,
debtor_id=debtor_id,
Expand All @@ -627,7 +631,6 @@ def _log_account_deletion(
peg_debtor_id=None,
ts=current_ts,
))

db.session.add(UpdatedFlagsSignal(
creditor_id=creditor_id,
debtor_id=debtor_id,
Expand Down

0 comments on commit 93efb88

Please sign in to comment.