mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
add missing aliases
This commit is contained in:
parent
e39a8eeccc
commit
7ae3bc3a90
4 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue