New to q, I got a sample code as follow, what it does is, get an order, then get the owner of the order, append the name of the owner to the order so that the complete order can be displayed, how to change this to using Q (kriskowal/q)? Thanks,
db.get_order(order_id, function(err, order) {
users.get_user(order.user_id, function(err, user) {
order['$user_name'] = user.name
console.log(order)
})
})