Skip to content

Commit

Permalink
Helper function added
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindnc committed Jul 23, 2024
1 parent 6f4af75 commit bfed6a7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/pagination-queryHelper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Helper function to paginate a query.
*
* @param {Object} options - The pagination options.
* @returns {Promise} - A promise that resolves to the paginated query result.
*/
function paginateQueryHelper(options) {
return this.model.paginate(this.getQuery(), options);
}
module.exports = paginateQueryHelper;
/**
* Helper function to paginate a query.
*
* @param {Object} options - The pagination options.
* @returns {Promise} - A promise that resolves to the paginated query result.
*/
function paginateQueryHelper(options) {
return this.model.paginate(this.getQuery(), options);
}

module.exports = paginateQueryHelper;

0 comments on commit bfed6a7

Please sign in to comment.