Last active
November 14, 2018 09:59
-
-
Save leandrocp/5125cb8b11230df8f3eba21679426974 to your computer and use it in GitHub Desktop.
art_bc_support_public_api.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apps/support/lib/support.ex | |
defmodule Support do | |
def get_customer(customer_id) when is_integet(customer_id) do | |
find(customer_id) # get customer from db | |
|> Map.from_struct() | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess "is_integet" should be "is_integer".