diff --git a/app/models/concerns/syncable.rb b/app/models/concerns/syncable.rb index 3d4ec844..5223d587 100644 --- a/app/models/concerns/syncable.rb +++ b/app/models/concerns/syncable.rb @@ -10,7 +10,7 @@ module Syncable end def sync_later(parent_sync: nil, window_start_date: nil, window_end_date: nil) - new_sync = syncs.create_with_defaults!(parent: parent_sync) + new_sync = syncs.create!(parent: parent_sync, window_start_date: window_start_date, window_end_date: window_end_date) SyncJob.perform_later(new_sync) end diff --git a/app/models/sync.rb b/app/models/sync.rb index 134b18c3..cbe560d1 100644 --- a/app/models/sync.rb +++ b/app/models/sync.rb @@ -35,13 +35,6 @@ class Sync < ApplicationRecord end end - class << self - # By default, we sync the "visible" window of data (user sees 30 day graphs by default) - def create_with_defaults!(parent: nil) - create!(parent: parent, window_start_date: 30.days.ago.to_date) - end - end - def perform Rails.logger.tagged("Sync", id, syncable_type, syncable_id) do start! diff --git a/app/views/accounts/show/_template.html.erb b/app/views/accounts/show/_template.html.erb index 51327254..efc7ea5a 100644 --- a/app/views/accounts/show/_template.html.erb +++ b/app/views/accounts/show/_template.html.erb @@ -2,7 +2,7 @@ <%= turbo_stream_from account %> -<%= turbo_frame_tag dom_id(account) do %> +<%= turbo_frame_tag dom_id(account, :container) do %> <%= tag.div class: "space-y-4 pb-32" do %> <% if header.present? %> <%= header %>