use correct changeset

This commit is contained in:
byte[] 2019-12-09 20:24:44 -05:00
parent 7d247b777f
commit 2a1ceb421e

View file

@ -95,7 +95,7 @@ defmodule Philomena.UserLinks do
nil <- repo.get_by(Award, badge_id: badge.id, user_id: user_link.user_id)
do
%Award{badge_id: badge.id, user_id: user_link.user_id, awarded_by_id: user.id, awarded_on: now}
|> Award.changeset()
|> Award.changeset(%{})
|> repo.insert()
else
_ ->