Commit 61ba2d5e authored by 李尚科's avatar 李尚科

gjj product order fix

parent 88c4993b
...@@ -46,9 +46,11 @@ module.exports = app => { ...@@ -46,9 +46,11 @@ module.exports = app => {
RecommendChannelProduct.all = async data => { RecommendChannelProduct.all = async data => {
const attributes = data.attributes ? data.attributes : {}; const attributes = data.attributes ? data.attributes : {};
const where = data.where ? data.where : {}; const where = data.where ? data.where : {};
const order = data.order ? data.order : [];
return await RecommendChannelProduct.findAll({ return await RecommendChannelProduct.findAll({
attributes, attributes,
where, where,
order,
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment