hey guys, I’m creating a trello clone and my delete is not working and I not sure why:
def delete_board(%Board{} = board) do
Repo.delete(board)
end
def delete_board(delete) do
url = "/api/boards/:id"
{:ok, %{status: status, body: body}} = Tesla.delete(client, url)
Enum.map(body, fn x -> from_response(x) end)
end
thanks everyone for your help