Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

fix(coinstats): stabilize bulk wallet ordering (#2402)

Sure Admin (bot)318c7476e1f7
diff --git a/app/models/coinstats_item/importer.rb b/app/models/coinstats_item/importer.rb
index 2a5f77b32d..b8fec52094 100644
--- a/app/models/coinstats_item/importer.rb
+++ b/app/models/coinstats_item/importer.rb
@@ -31,6 +31,7 @@ class CoinstatsItem::Importer
linked_accounts = coinstats_item.coinstats_accounts
.joins(:account_provider)
.includes(:account)
+ .order(:created_at, :id)
if linked_accounts.empty?
Rails.logger.info "CoinstatsItem::Importer - No linked accounts to sync for item #{coinstats_item.id}"