Created
July 17, 2020 21:49
-
-
Save isaidspaghetti/ec7f995b81421fb23e178c4afa52a056 to your computer and use it in GitHub Desktop.
create users stream
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
function createUsers(firstName, lastName) { | |
const customer = { | |
id: `${firstName}-${lastName}`.toLowerCase(), | |
name: firstName, | |
role: 'user', | |
}; | |
const supporter = { | |
id: 'adminId', | |
name: 'unique-admin-name', | |
role: 'admin' | |
} | |
return [customer, supporter] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment