mix format

This commit is contained in:
2022-01-22 17:21:10 -05:00
parent 421badbb90
commit 16018ae111
15 changed files with 122 additions and 127 deletions

View File

@ -1,18 +1,18 @@
defmodule Cannery.Repo.Migrator do
use GenServer
require Logger
def start_link(_) do
GenServer.start_link(__MODULE__, [], [])
end
def init(_) do
migrate!()
{:ok, nil}
end
def migrate! do
path = Application.app_dir(:cannery, "priv/repo/migrations")
Ecto.Migrator.run(Cannery.Repo, path, :up, all: true)
end
end
end

View File

@ -23,9 +23,7 @@ defmodule Cannery.Tags do
end
def list_tags(user_id) do
Repo.all(
from t in Tag, where: t.user_id == ^user_id
)
Repo.all(from t in Tag, where: t.user_id == ^user_id)
end
@doc """