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

Improve sync data management

This commit is contained in:
Zach Gollwitzer 2025-05-08 12:52:40 -04:00
parent 1e5edd9f2f
commit 867318cbc1
2 changed files with 7 additions and 7 deletions

View file

@ -19,8 +19,7 @@ class Sync < ApplicationRecord
start!
begin
data = syncable.sync_data(self, start_date: start_date)
update!(data: data) if data
syncable.sync_data(self, start_date: start_date)
unless has_pending_child_syncs?
complete!