Skip to content

Commit

Permalink
Deprecate transactions amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
phonnz committed Jan 21, 2025
1 parent 28627a4 commit 573785e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fullstack/lib/fullstack/financial.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ defmodule Fullstack.Financial do
defdelegate count_transactions, to: Transactions
defdelegate count_transactions(transactions), to: Transactions

def update_transactions() do
Transaction
|> where([t], t.amount <= 999)
|> Repo.update_all(set: [amount: Enum.random(1000..100_000)])
end

def build_transactions_analytics(params) do
Task.start(fn -> update_transactions() end)
transactions = Transactions.list_transactions(params)

%Transactions{}
Expand Down

0 comments on commit 573785e

Please sign in to comment.