mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Sync account after balance deletion
- Fixes #1416 - Fixes timezone bugs in forms
This commit is contained in:
parent
455257bf51
commit
2722254be9
4 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue