mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
fix: Enable Banking DNS issues and provide better UI sync feedback (#1021)
* fix(docker): add explicit DNS config to fix enable banking sync * fix(enable-banking): surface sync errors in the UI * fix: add spaces inside array brackets for RuboCop * fix(enable-banking): surface sync errors and partial failures in UI
This commit is contained in:
@@ -237,9 +237,11 @@ class AccountsController < ApplicationController
|
||||
|
||||
# Enable Banking sync stats
|
||||
@enable_banking_sync_stats_map = {}
|
||||
@enable_banking_latest_sync_error_map = {}
|
||||
@enable_banking_items.each do |item|
|
||||
latest_sync = item.syncs.ordered.first
|
||||
@enable_banking_sync_stats_map[item.id] = latest_sync&.sync_stats || {}
|
||||
@enable_banking_latest_sync_error_map[item.id] = latest_sync&.error
|
||||
end
|
||||
|
||||
# CoinStats sync stats
|
||||
|
||||
Reference in New Issue
Block a user