...
|
...
|
@@ -36,7 +36,7 @@ let favProduct = (req, res, next) => { |
|
|
|
|
|
favoriteModel.favProduct(uid, page, limit).then((result) => {
|
|
|
|
|
|
if (typeof(result.total) === "undefined") {
|
|
|
if (typeof(result.total) === "undefined" && typeof(result.more) === "undefined") {
|
|
|
res.render('favorite/favorite-product', {
|
|
|
layout: false,
|
|
|
hasFavProduct: result.hasFavProduct
|
...
|
...
|
@@ -54,7 +54,7 @@ let favfavBrand = (req, res, next) => { |
|
|
|
|
|
favoriteModel.favfavBrand(uid, page, limit).then((result) => {
|
|
|
|
|
|
if (typeof(result.total) === "undefined") {
|
|
|
if (typeof(result.total) === "undefined" && typeof(result.more) === "undefined") {
|
|
|
res.render('favorite/favorite-brand', {
|
|
|
layout: false,
|
|
|
hasFavBrand: result.hasFavBrand
|
...
|
...
|
|