no message
This commit is contained in:
@@ -161,15 +161,15 @@ Router.route('/list' + ParamStr)
|
|||||||
find: find,
|
find: find,
|
||||||
select: '_id order details.name details.pics.thumbnail',
|
select: '_id order details.name details.pics.thumbnail',
|
||||||
options: {
|
options: {
|
||||||
limit: 0,
|
limit: !isNaN(parseInt(req.params.limit)) ? parseInt(req.params.limit) : 0,
|
||||||
skip: 0,
|
skip: !isNaN(parseInt(req.params.skip)) ? parseInt(req.params.skip) : 0,
|
||||||
sort: { 'order': 1 }
|
sort: { 'order': 1 }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ProfileEvents.once('find', (err, result) => {
|
ProfileEvents.once('find', (err, result) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
res.status(500).json({ message: 'There was an error getting the vendor list', err: err });
|
res.status(500).json({ message: 'There was an error getting the profile list [' + err + ']', err: err });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|||||||
Reference in New Issue
Block a user