Last active
September 13, 2016 06:55
-
-
Save marr/e91b8d4cd7c7b0b9f2f1a8337a42508a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export async function findStaffById(id) { | |
if (staff[id]) { | |
return staff[id] | |
} | |
const url = endpoint(id).clone() | |
const data = await secureFetch(url) | |
staff[id] = camelify(data) | |
return staff[id] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment