1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00

Add context to plaid sync errors

This commit is contained in:
Zach Gollwitzer 2024-12-02 12:04:54 -05:00
parent d73e7eacce
commit 9ec94cd1fa
3 changed files with 21 additions and 4 deletions

View file

@ -28,9 +28,13 @@ class Family < ApplicationRecord
account.sync_data(start_date: start_date)
end
plaid_data = []
plaid_items.each do |plaid_item|
plaid_item.sync_data(start_date: start_date)
plaid_data << plaid_item.sync_data(start_date: start_date)
end
plaid_data
end
def post_sync