mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-21 12:53:11 +01:00
warnings
This commit is contained in:
parent
9c638c0e3b
commit
187051d56c
2 changed files with 4 additions and 4 deletions
|
@ -15,9 +15,9 @@ defmodule Philomena.Users.User do
|
||||||
@derive {Phoenix.Param, key: :slug}
|
@derive {Phoenix.Param, key: :slug}
|
||||||
|
|
||||||
schema "users" do
|
schema "users" do
|
||||||
has_many :links, Philomena.Users.Link
|
has_many :links, Philomena.UserLinks.UserLink
|
||||||
has_many :verified_links, Philomena.Users.Link, where: [aasm_state: "verified"]
|
has_many :verified_links, Philomena.UserLinks.UserLink, where: [aasm_state: "verified"]
|
||||||
has_many :public_links, Philomena.Users.Link, where: [public: true, aasm_state: "verified"]
|
has_many :public_links, Philomena.UserLinks.UserLink, where: [public: true, aasm_state: "verified"]
|
||||||
has_many :galleries, Philomena.Galleries.Gallery, foreign_key: :creator_id
|
has_many :galleries, Philomena.Galleries.Gallery, foreign_key: :creator_id
|
||||||
has_many :awards, Philomena.Badges.Award
|
has_many :awards, Philomena.Badges.Award
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ defmodule PhilomenaWeb.Filter.CurrentController do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp update_filter(conn, user, filter) do
|
defp update_filter(conn, user, filter) do
|
||||||
{:ok, user} =
|
{:ok, _user} =
|
||||||
user
|
user
|
||||||
|> User.filter_changeset(filter)
|
|> User.filter_changeset(filter)
|
||||||
|> Repo.update()
|
|> Repo.update()
|
||||||
|
|
Loading…
Reference in a new issue