Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Fix struct compatibility error in IncomeStatement::Totals (#603)

Juan José Matac3395ef06d38
diff --git a/app/models/income_statement.rb b/app/models/income_statement.rb
index 16982eba67..83aa2c9fd8 100644
--- a/app/models/income_statement.rb
+++ b/app/models/income_statement.rb
@@ -130,7 +130,7 @@ class IncomeStatement
sql_hash = Digest::MD5.hexdigest(transactions_scope.to_sql)
Rails.cache.fetch([
- "income_statement", "totals_query", family.id, sql_hash, family.entries_cache_version
+ "income_statement", "totals_query", "v2", family.id, sql_hash, family.entries_cache_version
]) { Totals.new(family, transactions_scope: transactions_scope, date_range: date_range).call }
end