Skip to content

Commit

Permalink
Use Keyword.fetch for returning custom migrator (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Edgesmith authored Nov 19, 2023
1 parent 9bdd70d commit b092e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oban/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ defmodule Oban.Migration do
case repo().__adapter__() do
Ecto.Adapters.Postgres -> Oban.Migrations.Postgres
Ecto.Adapters.SQLite3 -> Oban.Migrations.SQLite
_ -> Map.fetch!(repo().config(), :migrator)
_ -> Keyword.fetch!(repo().config(), :migrator)
end
end
end

0 comments on commit b092e27

Please sign in to comment.