Skip to content

Commit e439cc8

Browse files
committed
fix: paginated copilot request
1 parent e65a766 commit e439cc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/copilotRequest/list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ module.exports = [
4040
include: [
4141
{ model: models.CopilotOpportunity, as: 'copilotOpportunity', required: false },
4242
],
43-
order: [[sortParams[0], sortParams[1]]], // e.g. ['createdAt','DESC']
44-
limit: perPage,
43+
order: [[sortParams[0], sortParams[1]]],
44+
limit: pageSize,
4545
offset,
4646
}).then((copilotRequests) => util.setPaginationHeaders(req, res, {
4747
count: copilotRequests.count,

0 commit comments

Comments
 (0)