initial route for ICS retrieval, no actual ICS data yet

This commit is contained in:
Adam Piontek 2021-03-23 14:09:56 -04:00
commit 8fe1bc6322
8 changed files with 44 additions and 41 deletions
lib/shift73k

View file

@ -39,6 +39,10 @@ defmodule Shift73k.Accounts do
Repo.get_by(User, email: email)
end
def get_user_by_calendar_slug(slug) when is_binary(slug) do
Repo.get_by(User, calendar_slug: slug)
end
@doc """
Gets a user by email and password.