mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-01 03:08:16 +02:00
search newer/older than and better pagination
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = function(User) {
|
||||
|
||||
var currentPage = Math.max(1, Math.ceil((start + 1) / resultsPerPage));
|
||||
pageCount = Math.ceil(matchCount / resultsPerPage);
|
||||
pagination.create(currentPage, pageCount, data);
|
||||
data.pagination = pagination.create(currentPage, pageCount);
|
||||
|
||||
next(null, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user