1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Sync account after balance deletion
Some checks failed
Publish Docker image / ci (push) Has been cancelled
Publish Docker image / Build docker image (push) Has been cancelled

- 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