Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- findByName: function (req, res) {
- var companyName = req.param('companyName');
- Companies.native(function (err, companyName) {
- if (err) return res.serverError(err);
- companyName.find({}, {
- companyName: true,
- email: true
- }).toArray(function (err, results) {
- if (err) return res.serverError(err);
- return res.ok(results);
- });
- });
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement