Skip to content

Commit

Permalink
update src
Browse files Browse the repository at this point in the history
  • Loading branch information
lassemand committed Dec 17, 2024
1 parent 4f84a5a commit 9c21a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend-rust/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,8 @@ impl PreparedAccountDelegationEvent {
PreparedAccountDelegationEvent::BakerRemoved {
baker_id,
} => {
// TODO: This could maybe be left out because the subsequent events should do the same.
// TODO: This could maybe be left out because the subsequent events should do
// the same.
sqlx::query!(
r#"UPDATE accounts SET delegated_stake = 0, delegated_restake_earnings = false, delegated_target_baker_id = NULL WHERE index = $1"#,
*baker_id
Expand Down

0 comments on commit 9c21a92

Please sign in to comment.