diff --git a/app/models/sync.rb b/app/models/sync.rb index 61da7288f..d148dfe74 100644 --- a/app/models/sync.rb +++ b/app/models/sync.rb @@ -19,7 +19,7 @@ class Sync < ApplicationRecord scope :incomplete, -> { where("syncs.status IN (?)", %w[pending syncing]) } scope :visible, -> { incomplete.where("syncs.created_at > ?", VISIBLE_FOR.ago) } - after_commit :update_family_sync_timestamp, on: [:create, :update] + after_commit :update_family_sync_timestamp, on: [ :create, :update ] serialize :sync_stats, coder: JSON