Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Feb 5, 2024
1 parent a630690 commit f18c8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/safira/contest/contest.ex
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ defmodule Safira.Contest do
def create_redeem(attrs \\ %{}, user_type \\ :staff) do
Multi.new()
|> Multi.insert(:redeem, fn _ ->
if Interaction.is_badge_spotlighted(attrs.badge_id) do
if Interaction.is_badge_spotlighted(attrs["badge_id"]) do
attrs = Map.put(attrs, :spotlighted, true)

Check warning on line 174 in lib/safira/contest/contest.ex

View workflow job for this annotation

GitHub Actions / OTP 25.x / Elixir 1.14.x

variable "attrs" is unused (there is a variable with the same name in the context, use the pin operator (^) to match on it or prefix this variable with underscore if it is not meant to be used)
end

Expand Down

0 comments on commit f18c8b8

Please sign in to comment.