Open hariawan opened 9 years ago
This is the scenario,
Once I update my vendor document, I also want my req.user be updated.
I try this code
Vendor.updateById(id, data, function(err, newVendor) { req.user.vendor = newVendor })
But I won't work. Any Idea?
This is the scenario,
Once I update my vendor document, I also want my req.user be updated.
I try this code
But I won't work. Any Idea?