Skip to content

Commit a7a081d

Browse files
author
Josh Waldrep
committed
set SimpleFIN item for balances, remove redundant unpacking, and improve holdings task error
1 parent 297670a commit a7a081d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

app/controllers/simplefin_items_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class SimplefinItemsController < ApplicationController
22
include SimplefinItems::MapsHelper
3-
before_action :set_simplefin_item, only: [ :show, :edit, :update, :destroy, :sync, :setup_accounts, :complete_account_setup, :errors ]
3+
before_action :set_simplefin_item, only: [ :show, :edit, :update, :destroy, :sync, :balances, :setup_accounts, :complete_account_setup, :errors ]
44

55
def index
66
@simplefin_items = Current.family.simplefin_items.active.ordered

app/models/recurring_transaction/identifier.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ def identify_recurring_patterns
4646
# Unpack identifier - either [:merchant, id] or [:name, name_string]
4747
identifier_type, identifier_value = identifier
4848

49-
# Support both merchant-based and name-based recurring patterns (main-parity)
50-
identifier_type, identifier_value = identifier
51-
5249
pattern = {
5350
amount: amount,
5451
currency: currency,

lib/tasks/holdings_tools.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace :sure do
7676
h.destroy!
7777
puts({ ok: true, removed: id }.to_json)
7878
rescue => e
79-
puts({ ok: false, error: "usage", message: "Provide snapshot_id" }.to_json)
79+
puts({ ok: false, error: e.class.name, message: e.message }.to_json)
8080
exit 1
8181
end
8282
end

0 commit comments

Comments
 (0)