Skip to content

Commit

Permalink
Alias Trento Repo in Database log writer
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonkopliku committed Jul 8, 2024
1 parent 5f654fe commit 95cb859
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ defmodule Trento.Infrastructure.ActivityLog.Logger.DatabasetWriter do
Persistent Activity Log Writer Adapter
"""

alias Trento.Repo

alias Trento.ActivityLog.ActivityLog

@behaviour Trento.ActivityLog.Logger.ActivityLogWriter
Expand All @@ -12,5 +14,5 @@ defmodule Trento.Infrastructure.ActivityLog.Logger.DatabasetWriter do
do:
%ActivityLog{}
|> ActivityLog.changeset(log_entry)
|> Trento.Repo.insert()
|> Repo.insert()
end

0 comments on commit 95cb859

Please sign in to comment.