Skip to content

Commit

Permalink
Update lib/ecto/repo/queryable.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Sep 25, 2024
1 parent 5a2252b commit b952e1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ecto/repo/queryable.ex
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,7 @@ defmodule Ecto.Repo.Queryable do
assert_structs!(structs)

schema = head.__struct__
prefix = head.__meta__.prefix
source = head.__meta__.source
%{prefix: prefix, source: source} = head.__meta__

case schema.__schema__(:primary_key) do
[pk] ->
Expand Down

0 comments on commit b952e1f

Please sign in to comment.