Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdel committed Jan 26, 2024
1 parent 5c8d95c commit 12aa90d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/pears/persistence.ex
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ defmodule Pears.Persistence do
|> Repo.update()
end

@decorate trace("persistence.remove_track_from_team", include: [:team_name, :track_name, :error])
@decorate trace("persistence.remove_track_from_team",
include: [:team_name, :track_name, :error]
)
def remove_track_from_team(team_name, track_name) do
case get_team_by_name(team_name) do
{:ok, team} ->
Expand Down
8 changes: 6 additions & 2 deletions lib/pears_web/live/pairing_board_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ defmodule PearsWeb.PairingBoardLive do
end

@impl true
@decorate trace("team_live.pear_selected", include: [:_team_name, :pear_name, :current_location])
@decorate trace("team_live.pear_selected",
include: [:_team_name, :pear_name, :current_location]
)
def handle_event("pear-selected", params, socket) do
_team_name = team_name(socket)
pear_name = Map.get(params, "pear-name")
Expand Down Expand Up @@ -209,7 +211,9 @@ defmodule PearsWeb.PairingBoardLive do
{:noreply, unselect_pear(socket)}
end

@decorate trace("team_live.move_pear", include: [:team_name, :pear_name, :from_track, :to_track])
@decorate trace("team_live.move_pear",
include: [:team_name, :pear_name, :from_track, :to_track]
)
def handle_event("move-pear", params, socket) do
team_name = team_name(socket)
pear_name = Map.get(params, "pear")
Expand Down

0 comments on commit 12aa90d

Please sign in to comment.