Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f6ec31366 |
@@ -28,4 +28,6 @@
|
|||||||
Move Links to the Links context.
|
Move Links to the Links context.
|
||||||
Refactor to split the Links to a Link model and a Links logic.
|
Refactor to split the Links to a Link model and a Links logic.
|
||||||
Update the controller and the view for updated Link model.
|
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
|
end
|
||||||
|
|
||||||
def update_one(%Link{} = link, changes) do
|
def update_one(%Link{} = link, changes) do
|
||||||
Link
|
link
|
||||||
|> Link.changeset(changes)
|
|> Link.changeset(changes)
|
||||||
|> Repo.update()
|
|> Repo.update()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user