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

Fix @spec for Repo.insert_all/3 #56

Merged
merged 2 commits into from
Aug 2, 2018
Merged

Conversation

moxley
Copy link
Contributor

@moxley moxley commented Jun 19, 2018

Reflects the fix to Ecto made here: elixir-ecto/ecto#2597

Was causing Dialyzer errors.

Reflects the fix to Ecto made here: elixir-ecto/ecto#2597
def insert_all(schema_or_source, entries, opts \\ []) do
instrument_db(:insert_all, schema_or_source, opts, fn() ->
repo().insert_all(schema_or_source, entries, opts)
def insert_all(module_or_map, entries, opts \\ []) do
Copy link

@zapient zapient Jul 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. Good catch. I copied a change for a different function in Ecto (load/3), which isn't in new-relixir. Now fixed.

@coburncoburn coburncoburn merged commit d602209 into TheRealReal:master Aug 2, 2018
@moxley moxley deleted the fix-specs branch August 3, 2018 14:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants