Rename the Links.get_one_by_name to get_one_by_shorten.

This commit is contained in:
2023-07-06 20:01:53 +03:00
parent c17b323566
commit 2e3f3d3901
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -52,8 +52,8 @@ defmodule LinkShortener.Links do
Repo.get_by(Links, attrs)
end
def get_one_by_name(name) do
get_one_by(%{name: name})
def get_one_by_shorten(shorten) do
get_one_by(%{shorten: shorten})
end
def get_one(id) do