add missing aliases

This commit is contained in:
byte[] 2019-12-02 10:02:48 -05:00
parent e39a8eeccc
commit 7ae3bc3a90
4 changed files with 5 additions and 1 deletions

View file

@ -58,7 +58,7 @@ defmodule Philomena.Topics do
{count, nil} =
Forum
|> where(id: ^topic.forum_id)
|> repo.update_all(inc: [post_count: 1], set: [last_post_id: hd(topic.posts).id])
|> repo.update_all(inc: [post_count: 1, topic_count: 1], set: [last_post_id: hd(topic.posts).id])
{:ok, count}
end)

View file

@ -2,6 +2,7 @@ defmodule PhilomenaWeb.ImageController do
use PhilomenaWeb, :controller
alias PhilomenaWeb.ImageLoader
alias PhilomenaWeb.NotificationCountPlug
alias Philomena.{Images, Images.Image, Comments.Comment, Textile.Renderer}
alias Philomena.Servers.ImageProcessor
alias Philomena.Interactions

View file

@ -1,6 +1,7 @@
defmodule PhilomenaWeb.TopicController do
use PhilomenaWeb, :controller
alias PhilomenaWeb.NotificationCountPlug
alias Philomena.{Forums.Forum, Topics.Topic, Posts.Post, Polls.Poll, PollOptions.PollOption}
alias Philomena.{Forums, Topics, Posts}
alias Philomena.Textile.Renderer

View file

@ -73,6 +73,8 @@ defmodule Philomena.MixProject do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"ecto.migrate": ["ecto.migrate", "ecto.dump"],
"ecto.rollback": ["ecto.rollback", "ecto.dump"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end