Skip to content

Commit

Permalink
fix(mentions): Restore pagination while sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Feb 10, 2025
1 parent 40ea0c7 commit cf65528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/routes/mentions.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const getMentions = async ({ query }) => {
};

const getMentionsCount = async ({ query }) => {
['_source', 'from', 'highlight', 'size'].forEach((item) => {
['_source', 'from', 'highlight', 'size', 'sort'].forEach((item) => {
// eslint-disable-next-line no-param-reassign
delete query?.[item];
});
Expand Down

0 comments on commit cf65528

Please sign in to comment.