Fix Links.update_one/2.
This commit is contained in:
@@ -25,7 +25,7 @@ defmodule LinkShortener.Links.Links do
|
||||
end
|
||||
|
||||
def update_one(%Link{} = link, changes) do
|
||||
Link
|
||||
link
|
||||
|> Link.changeset(changes)
|
||||
|> Repo.update()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user