mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 21:45:23 +02:00
Handle nested child syncs (#2220)
This commit is contained in:
parent
8b857e9c8a
commit
2707a40a2a
3 changed files with 29 additions and 15 deletions
|
@ -47,7 +47,7 @@ class PlaidItem < ApplicationRecord
|
|||
|
||||
# Schedule account syncs
|
||||
accounts.each do |account|
|
||||
account.sync_later(start_date: start_date)
|
||||
account.sync_later(start_date: start_date, parent_sync: sync)
|
||||
end
|
||||
|
||||
Rails.logger.info("Plaid data fetched and loaded")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue