1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Fix account group broadcast reference

This commit is contained in:
Zach Gollwitzer 2025-05-15 10:53:15 -04:00
parent 10dd9e061a
commit a565343102

View file

@ -38,6 +38,8 @@ class Account::SyncCompleteEvent
# The sidebar will show the account in both its classification tab and the "all" tab,
# so we need to broadcast to both.
def account_group_ids
return [] unless account_group.present?
id = account_group.id
[ id, "#{account_group.classification}_#{id}" ]
end