Skip to content

Commit d4a88f4

Browse files
committed
fix: paginated copilot request
1 parent e30591f commit d4a88f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/copilotRequest/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = [
4545
offset,
4646
distinct: true,
4747
subQuery: false,
48-
}).then((copilotRequests, count) => util.setPaginationHeaders(req, res, {
48+
}).then(({rows: copilotRequests, count}) => util.setPaginationHeaders(req, res, {
4949
count: count,
5050
rows: copilotRequests,
5151
page,

0 commit comments

Comments
 (0)