additional functionality, integration, and testing for #6455

This commit is contained in:
Julian Lam
2018-04-16 15:21:48 -04:00
parent 5943389b7a
commit 850f59a1ae
4 changed files with 62 additions and 4 deletions

View File

@@ -34,7 +34,10 @@ module.exports = function (Posts) {
async.parallel([
async.apply(Posts.uploads.associate, pid, add),
async.apply(Posts.uploads.dissociate, pid, remove),
], callback);
], function (err) {
// Strictly return only err
callback(err);
});
});
};