feat(client, api): Add Camper Join Date to Profile (#38408)

This commit is contained in:
Manish Giri
2020-08-04 03:38:13 -04:00
committed by GitHub
parent 303e228299
commit 08d4811df3
5 changed files with 29 additions and 4 deletions

View File

@ -769,6 +769,7 @@ export default function(User) {
calendar,
completedChallenges,
isDonating,
joinDate,
location,
name,
points,
@ -813,6 +814,7 @@ export default function(User) {
}
})(),
isDonating: showDonation ? isDonating : null,
joinDate: showAbout ? joinDate : '',
location: showLocation ? location : '',
name: showName ? name : '',
points: showPoints ? points : null,
@ -843,7 +845,8 @@ export default function(User) {
points: progressTimestamps.length,
completedChallenges,
...getProgress(progressTimestamps, timezone),
...normaliseUserFields(user)
...normaliseUserFields(user),
joinDate: user.id.getTimestamp()
};
const publicUser = prepUserForPublish(allUser, profileUI);