Skip to content

Commit

Permalink
Fix recipe totalCount with distinct: true
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy committed Mar 19, 2019
1 parent 6771e5c commit c66cd67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Backend/routes/recipes.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ router.get(
sort
],
limit: Math.min(parseInt(req.query.count) || 100, 500),
offset: req.query.offset || 0
offset: req.query.offset || 0,
distinct: true
}).then(({ count, rows }) => {
res.status(200).json({
data: rows,
Expand Down

0 comments on commit c66cd67

Please sign in to comment.