Skip to content

Commit

Permalink
Update tag.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
juanzeen authored Dec 19, 2024
1 parent d6b401a commit 29416ea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/pescarte/blog/entity/tag.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ defmodule Pescarte.Blog.Entity.Tag do
Pescarte.Database.fetch_by(Tag, nome: nome)
end

@spec to_changesets(list(Map.t()), list()) :: {:ok, list(Tag.t())}
def to_changesets(list, acc \\ [])
def to_changesets([], acc), do: {:ok, acc}
def to_changesets([tag | rest], acc), do: to_changesets(rest, [changeset(%Tag{}, tag) | acc])

@spec create_tag(map()) :: {:ok, Tag.t()} | {:error, changeset}
def create_tag(attrs) do
%Tag{}
Expand Down

0 comments on commit 29416ea

Please sign in to comment.