mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +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}
|
||||
|
||||
schema "users" do
|
||||
has_many :links, Philomena.Users.Link
|
||||
has_many :verified_links, Philomena.Users.Link, where: [aasm_state: "verified"]
|
||||
has_many :public_links, Philomena.Users.Link, where: [public: true, aasm_state: "verified"]
|
||||
has_many :links, Philomena.UserLinks.UserLink
|
||||
has_many :verified_links, Philomena.UserLinks.UserLink, where: [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 :awards, Philomena.Badges.Award
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ defmodule PhilomenaWeb.Filter.CurrentController do
|
|||
end
|
||||
|
||||
defp update_filter(conn, user, filter) do
|
||||
{:ok, user} =
|
||||
{:ok, _user} =
|
||||
user
|
||||
|> User.filter_changeset(filter)
|
||||
|> Repo.update()
|
||||
|
|
Loading…
Reference in a new issue