Sync account after balance deletion

- Fixes #1416
- Fixes timezone bugs in forms
This commit is contained in:
Zach Gollwitzer
2024-11-05 19:31:24 -05:00
parent 455257bf51
commit 2722254be9
4 changed files with 4 additions and 3 deletions

View File

@@ -37,6 +37,7 @@ class TransactionsController < ApplicationController
def bulk_delete
destroyed = Current.family.entries.destroy_by(id: bulk_delete_params[:entry_ids])
destroyed.map(&:account).uniq.each(&:sync_later)
redirect_back_or_to transactions_url, notice: t(".success", count: destroyed.count)
end