Created
August 14, 2020 21:29
-
-
Save isaidspaghetti/758c053f0f553ed2e8c23ea8f29acf7f to your computer and use it in GitHub Desktop.
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
//backend/routes/index.js:11 | |
function createUsers(firstName, lastName) { | |
const customer = { | |
id: `${firstName}-${lastName}`.toLowerCase(), | |
name: firstName, | |
role: 'user', | |
}; | |
const admin = { | |
id: 'admin-id', | |
name: 'Support Admin', | |
role: 'admin' | |
}; | |
return [customer, admin]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment