Skip to content

Commit

Permalink
Remove repo method call
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultzer committed May 24, 2019
1 parent 6823b97 commit 3f4a61c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.0.9 (TBA)

- Removed call to `Pow.Ecto.Context.repo/1`

## v1.0.8 (2019-05-24)

### Changes
Expand Down
2 changes: 1 addition & 1 deletion lib/pow/ecto/context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ defmodule Pow.Ecto.Context do
clauses = normalize_user_id_field_value(user_mod, clauses)
opts = prefix_opts(config)

repo(config).get_by(user_mod, clauses, opts)
Config.repo!(config).get_by(user_mod, clauses, opts)
end

defp normalize_user_id_field_value(user_mod, clauses) do
Expand Down

0 comments on commit 3f4a61c

Please sign in to comment.