Created
August 12, 2013 12:27
-
-
Save ashleycoker/6210398 to your computer and use it in GitHub Desktop.
Updates organisation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Update organisation | |
*/ | |
exports.update = function (req, res, next) { | |
var org = req.organisation; | |
org = _.extend(org, req.body); | |
org.save(function (err, org){ | |
if ( err ) return next(err); | |
res.json({ | |
data:org | |
}); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment