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:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user