Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Moffat authored and Mark Moffat committed Feb 21, 2020
1 parent d711316 commit 2b36876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const getImages = async (id, req, res, callback) => {

const product = await db.products.findOne({ _id: getId(id) });
if(!product){
return[];
return [];
}

// loop files in /public/uploads/
Expand Down Expand Up @@ -525,7 +525,7 @@ const sortMenu = (menu) => {
menu.items = _.sortBy(menu.items, 'order');
return menu;
}
return{};
return {};
};

// orders the menu
Expand Down Expand Up @@ -623,7 +623,7 @@ const getData = (req, page, query) => {

let skip = 0;
if(page > 1){
skip = (page - 1) * numberProducts;
skip = (page - 1) * process.env.pageSize;
}

if(!query){
Expand Down

0 comments on commit 2b36876

Please sign in to comment.