Chore: Update User model (#17171)

* fix(logs): Remove console.log's

* chore(challengeMap): challengeMap -> completedChallenges

* chore(userModel): Update user model

* feat(userIDs): Add user ident fields

* chore(github): Remove more refs to github data
This commit is contained in:
Stuart Taylor
2018-05-15 14:56:26 +01:00
committed by mrugesh mohapatra
parent 156ea1af76
commit f916204ba5
23 changed files with 233 additions and 742 deletions

View File

@@ -27,17 +27,13 @@ export function createUserUpdatesFromProfile(provider, profile) {
)
};
}
// using es6 argument destructing
// createProfileAttributes(profile) => profileUpdate
function createProfileAttributesFromGithub(profile) {
const {
profileUrl: githubURL,
profileUrl: githubProfile,
username,
_json: {
id: githubId,
avatar_url: picture,
email: githubEmail,
created_at: joinedGithubOn,
blog: website,
location,
bio,
@@ -49,14 +45,9 @@ function createProfileAttributesFromGithub(profile) {
username: username.toLowerCase(),
location,
bio,
joinedGithubOn,
website,
isGithubCool: true,
picture,
githubId,
githubURL,
githubEmail,
githubProfile: githubURL
githubProfile
};
}