Fix Links.update_one/2.

This commit is contained in:
2023-08-01 17:58:42 +03:00
parent 9c273a473e
commit 8f6ec31366
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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