Skip to content

Commit ba0af40

Browse files
committed
fix: return pagination headers when fallback to DB
1 parent 6a894b7 commit ba0af40

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/common/helper.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,6 @@ function getPageLink (req, page) {
599599
* @param {Object} result the operation result
600600
*/
601601
function setResHeaders (req, res, result) {
602-
if (result.fromDb) {
603-
return
604-
}
605602
const totalPages = Math.ceil(result.total / result.perPage)
606603
if (result.page > 1) {
607604
res.set('X-Prev-Page', result.page - 1)

0 commit comments

Comments
 (0)