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:
committed by
mrugesh mohapatra
parent
156ea1af76
commit
f916204ba5
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user