Fix Links.update_one/2.

main 0.4.4
KKlochko 2 years ago
parent 9c273a473e
commit 8f6ec31366

@ -28,4 +28,6 @@
Move Links to the Links context.
Refactor to split the Links to a Link model and a Links logic.
Update the controller and the view for updated Link model.
** 0.4.4 <2023-08-01 Tue>
Fix Links.update_one/2.

@ -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

Loading…
Cancel
Save