added err to callbacks

This commit is contained in:
Baris Usakli
2013-12-10 15:39:53 -05:00
parent 401a30e02c
commit 55d008d71f

View File

@@ -220,11 +220,11 @@ var db = require('./database.js'),
if (err) {
winston.err(err);
return callback([]);
return callback(err, []);
}
if (pids.length === 0) {
return callback([]);
return callback(null, []);
}
posts.getPostSummaryByPids(pids, true, function(err, postData) {