...
|
...
|
@@ -92,12 +92,13 @@ const newProduct = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
const reduction = (req, res, next) => {
|
|
|
let uid = req.user.uid;
|
|
|
let page = +req.query.page || 1;
|
|
|
let type = req.query.type || '';
|
|
|
let limit = 10;
|
|
|
|
|
|
favoriteService.reduction().then((result) => {
|
|
|
return res.render('reduction', result);
|
|
|
favoriteService.reduction(uid, page, limit, type, 0, 'Y').then((result) => {
|
|
|
return res.render('home/favorite/reduction', result);
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
...
|
...
|
|