slight variable name changes & remove unused var from getPostsByPids, removed underscore dependency

v1.18.x
Andrew Darqui 12 years ago
parent e26cc79819
commit d2b858c997

@ -158,8 +158,6 @@ var RDB = require('./redis.js'),
/* getPostsByPids using redis's multi pipeline */
Posts.getPostsByPids = function(pids, callback) {
var posts = []
var new_pids = []
var multi = RDB.multi();
for (v in pids) {
@ -168,9 +166,7 @@ var RDB = require('./redis.js'),
}
multi.exec(function (err, replies) {
var pids = replies
async.eachSeries(pids, function(pid, _callback) {
var postData = pid
async.eachSeries(replies, function(postData, _callback) {
if(postData) {
postData.relativeTime = utils.relativeTime(postData.timestamp);
postData.post_rep = postData.reputation;

Loading…
Cancel
Save