feat(profile): Create top contributor badge (#17805)

This commit is contained in:
Buğra Gündüz
2018-08-02 18:39:51 +03:00
committed by mrugesh mohapatra
parent d7180d8a4f
commit 3c72c93a8d
6 changed files with 43 additions and 9 deletions

View File

@ -850,7 +850,8 @@ module.exports = function(User) {
points,
portfolio,
streak,
username
username,
yearsTopContributor
} = user;
const {
isLocked = true,
@ -881,7 +882,8 @@ module.exports = function(User) {
name: showName ? name : '',
points: showPoints ? points : null,
portfolio: showPortfolio ? portfolio : [],
streak: showHeatMap ? streak : {}
streak: showHeatMap ? streak : {},
yearsTopContributor: yearsTopContributor
};
}