mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Auto sync preference, max limit on account CSV imports (#2259)
* Auto sync preference, max limit on account CSV imports * MaxRowCountExceededError
This commit is contained in:
@@ -13,6 +13,7 @@ module AutoSync
|
||||
def family_needs_auto_sync?
|
||||
return false unless Current.family&.accounts&.active&.any?
|
||||
return false if (Current.family.last_sync_created_at&.to_date || 1.day.ago) >= Date.current
|
||||
return false unless Current.family.auto_sync_on_login
|
||||
|
||||
Rails.logger.info "Auto-syncing family #{Current.family.id}, last sync was #{Current.family.last_sync_created_at}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user