Skip to content

Instantly share code, notes, and snippets.

@isaidspaghetti
Created July 17, 2020 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaidspaghetti/ec7f995b81421fb23e178c4afa52a056 to your computer and use it in GitHub Desktop.
Save isaidspaghetti/ec7f995b81421fb23e178c4afa52a056 to your computer and use it in GitHub Desktop.
create users stream
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