mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
use correct changeset
This commit is contained in:
parent
7d247b777f
commit
2a1ceb421e
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ defmodule Philomena.UserLinks do
|
||||||
nil <- repo.get_by(Award, badge_id: badge.id, user_id: user_link.user_id)
|
nil <- repo.get_by(Award, badge_id: badge.id, user_id: user_link.user_id)
|
||||||
do
|
do
|
||||||
%Award{badge_id: badge.id, user_id: user_link.user_id, awarded_by_id: user.id, awarded_on: now}
|
%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()
|
|> repo.insert()
|
||||||
else
|
else
|
||||||
_ ->
|
_ ->
|
||||||
|
|
Loading…
Reference in a new issue