Profile Handle

This commit is contained in:
Luis Fernando Molina committed 2021-08-26 16:54:05 +02:00
1 parent 6c8f75d3e7
commit dba49aa67d
5 files changed
+19 -12

No files matched your search

+7 -3
View File
@@ -15,8 +15,12 @@ exports.newProfileStatsQuery = function newProfileStatsQuery() {
function initialize(queryReceived) {
thisObject.profile = NT.memory.PROFILES.get(queryReceived.targetUserProfileId)
if (queryReceived.targetUserProfileId !== undefined) {
thisObject.profile = NT.memory.USER_PROFILES_BY_ID.get(queryReceived.targetUserProfileId)
} else {
thisObject.profile = NT.memory.USER_PROFILES_BY_ID.get(queryReceived.targetUserProfileHandle)
}
if (thisObject.profile === undefined) {
throw ('Target User Profile Not Found.')
}
@@ -27,7 +31,7 @@ exports.newProfileStatsQuery = function newProfileStatsQuery() {
return {
"userProfieId": thisObject.profile.userProfieId,
"githubUsername": thisObject.profile.githubUsername,
"userHandle": thisObject.profile.userHandle,
"blockchainAccount": thisObject.profile.blockchainAccount,
"ranking": thisObject.profile.ranking,
"multiMediaPostFollowingCount": thisObject.profile.multiMediaPostFollowingCount,