mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
Sync account after balance deletion
- Fixes #1416 - Fixes timezone bugs in forms
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user