mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-10 07:55:21 +02:00
Fix Plaid item sync regression
This commit is contained in:
parent
878e455bb1
commit
645162b654
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ class PlaidItem < ApplicationRecord
|
|||
plaid_data = fetch_and_load_plaid_data
|
||||
update!(status: :good) if requires_update?
|
||||
|
||||
# Schedule account syncs
|
||||
accounts.each do |account|
|
||||
account.sync_later(start_date: start_date)
|
||||
end
|
||||
|
||||
Rails.logger.info("Plaid data fetched and loaded")
|
||||
plaid_data
|
||||
rescue Plaid::ApiError => e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue