mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
added err to callbacks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user