Skip to content

Commit 6fa0067

Browse files
committed
remove transaction activities
1 parent d8205ae commit 6fa0067

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/algora/contracts/contracts.ex

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,7 @@ defmodule Algora.Contracts do
504504
provider_meta: Util.normalize_struct(%{error: error}),
505505
status: :failed
506506
})
507-
|> Repo.update_with_activity(%{
508-
type: :transaction_status_change,
509-
meta: %{status: :failed, transaction_id: transaction.id}
510-
})
507+
|> Repo.update()
511508
end
512509

513510
defp update_transaction_status(transaction, record, status) do
@@ -518,10 +515,7 @@ defmodule Algora.Contracts do
518515
status: status,
519516
succeeded_at: if(status == :succeeded, do: DateTime.utc_now())
520517
})
521-
|> Repo.update_with_activity(%{
522-
type: :transaction_status_change,
523-
meta: %{status: status, transaction_id: transaction.id}
524-
})
518+
|> Repo.update()
525519
end
526520

527521
defp mark_contract_as_paid(contract) do

0 commit comments

Comments
 (0)