mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Latest bits
This commit is contained in:
@ -14,13 +14,11 @@ module.exports = function(config) {
|
||||
|
||||
return {
|
||||
send: function(req, res) {
|
||||
console.log(req);
|
||||
var userId = req.body.user;
|
||||
if (!userId) {
|
||||
return res.json(404, null);
|
||||
}
|
||||
|
||||
console.log("Sending message");
|
||||
User.findById(userId, function(err, user) {
|
||||
if (err) return res.json(500, err);
|
||||
|
||||
|
Reference in New Issue
Block a user