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:
parent
1e5edd9f2f
commit
867318cbc1
2 changed files with 7 additions and 7 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue