You trying to send response two times after customer and admin collection update. That's why you got this error.
To solve this. Use async library http://caolan.github.io/async/docs.html#.parallel
Or custom functions with callbacks and only send headers when all collections got updated.
here is example
async.parallel([
adminName: function(callback) {
admin.update({yourUpdateCode}, function(err, AdminDoc){
//you may want to add error handling here
callback(null, AdminDoc);
});
},
customerName: function(callback) {
customer.update({yourUpdateCode}, function(err,doc){
//you may want to add error handling here
callback(null, CustDoc);
});
}],
function(err, results) {
// results is now equals to: {adminName: AdminDoc, customerName: CustDoc}
//your final callback here.
});
Hope this helps.