1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 09:32:51 +00:00

switch from yarn to npm - other minor updates

This commit is contained in:
2018-04-30 20:13:13 -05:00
parent 0b6522f5f2
commit ac7d913e30
10 changed files with 16196 additions and 6767 deletions

View File

@@ -26,13 +26,6 @@ defmodule MyApp.Data.Reply do
end
# allow user to update reply
defp user_update_changeset(reply, params \\ %{}) do
reply
|> cast(params, [:content])
|> force_change(:edited, true) # set edited flag on update
|> validate_required([:content])
end
@spec insert(map) :: {:ok, map} | {:error, map}
def insert(params) do
{:ok, data} = Repo.transaction(fn ->