Skip to content

Commit

Permalink
fix: move where
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeen committed Jan 11, 2022
1 parent 046d72e commit 48fb530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/units.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ export const findAll = async (req, res) => {
res.json(
optionallyPaginatedResponse(
await Unit.findAndCountAll({
where,
distinct: true,
...columnsToInclude(columns, includes),
...paginationParams(page, limit),
}),
page,
where,
limit,
),
);
Expand Down

0 comments on commit 48fb530

Please sign in to comment.