Skip to content

Commit

Permalink
Change labels for Reactions API
Browse files Browse the repository at this point in the history
  • Loading branch information
sonimehul committed Jun 24, 2015
1 parent ce17bdc commit 880384c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion common/models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,20 @@ processReactionsResponse = function (error, response, body, cb) {
retResults = results;
}
}

var finalResults = [];
if(retResults) {
for(var i=0; i < retResults.length; i++) {
var obj = {};
obj.label = retResults[i].term;
obj.value = retResults[i].count;

finalResults.push(obj);

}
}
}
return cb(null, retResults);
return cb(null, finalResults);
};

};

0 comments on commit 880384c

Please sign in to comment.