Skip to content

Commit

Permalink
chore: mix deps.update --all
Browse files Browse the repository at this point in the history
  • Loading branch information
losvedir committed May 26, 2022
1 parent 0f529f9 commit 234045e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
1 change: 1 addition & 0 deletions lib/arrow/adjustment.ex
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ defmodule Arrow.Adjustment do
binding `adjustments`. Bus adjustments are not yet supported in general, so we assume there are
none in the database.
"""
# credo:disable-for-next-line
@spec kind_is(atom()) :: %Ecto.Query.DynamicExpr{}
def kind_is(:blue_line), do: dynamic([adjustments: a], a.route_id == "Blue")
def kind_is(:orange_line), do: dynamic([adjustments: a], a.route_id == "Orange")
Expand Down
2 changes: 1 addition & 1 deletion lib/arrow/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule Arrow.Repo do
port = Keyword.fetch!(config, :port)

mod = Application.get_env(:arrow, :aws_rds_mod)
token = apply(mod, :generate_db_auth_token, [hostname, username, port, %{}])
token = mod.generate_db_auth_token(hostname, username, port, %{})
:ok = Logger.info("generated_aws_rds_iam_auth_token")

Keyword.put(config, :password, token)
Expand Down
2 changes: 1 addition & 1 deletion lib/arrow_web/views/disruption_view/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule ArrowWeb.DisruptionView.Form do
"adjustments" => Enum.map(adjustments, &encode_adjustment/1),
"daysOfWeek" => days_of_week |> Enum.map(&encode_day_of_week/1) |> Enum.into(%{}),
"exceptions" => Enum.map(exceptions, & &1.excluded_date),
"tripShortNames" => trip_short_names |> Enum.map(& &1.trip_short_name) |> Enum.join(",")
"tripShortNames" => trip_short_names |> Enum.map_join(",", & &1.trip_short_name)
},
"iconPaths" => icon_paths(conn),
"noteBody" => note_body
Expand Down
3 changes: 1 addition & 2 deletions lib/arrow_web/views/error_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ defmodule ArrowWeb.ErrorHelpers do
field_description =
[field | context]
|> Enum.reverse()
|> Enum.map(&(&1 |> to_string() |> String.replace("_", " ")))
|> Enum.join(": ")
|> Enum.map_join(": ", &(&1 |> to_string() |> String.replace("_", " ")))
|> String.capitalize()

["#{field_description} #{error}" | error_messages({field, rest}, context)]
Expand Down
Loading

0 comments on commit 234045e

Please sign in to comment.