Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Replace invalid Map.t type with map type (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
coryc5 authored and coburncoburn committed Feb 24, 2018
1 parent a44cfaa commit 47091ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/new_relixir/plug/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ defmodule NewRelixir.Plug.Repo do
end)
end

@spec get_by(Ecto.Queryable.t, Keyword.t | Map.t, Keyword.t) :: Ecto.Schema.t | nil | no_return
@spec get_by(Ecto.Queryable.t, Keyword.t | map, Keyword.t) :: Ecto.Schema.t | nil | no_return
def get_by(queryable, clauses, opts \\ []) do
instrument_db(:get_by, queryable, opts, fn() ->
repo().get_by(queryable, clauses, opts)
end)
end

@spec get_by!(Ecto.Queryable.t, Keyword.t | Map.t, Keyword.t) :: Ecto.Schema.t | nil | no_return
@spec get_by!(Ecto.Queryable.t, Keyword.t | map, Keyword.t) :: Ecto.Schema.t | nil | no_return
def get_by!(queryable, clauses, opts \\ []) do
instrument_db(:get_by!, queryable, opts, fn() ->
repo().get_by!(queryable, clauses, opts)
Expand Down

0 comments on commit 47091ff

Please sign in to comment.