mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
Improve sync data management
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user