fknop/hapi-pagination

totalCount and pageCount values when result set is empty

richardlay opened this issue · 3 comments

If an empty result set is returned, i.e. reply.paginate([], 0), totalCount and pageCount are null. Should these be set to 0?

fknop commented

Indeed, that would make more sense. I'll do that later when I have time, or I'll accept another PR :).

Yep I can do it. Just wanted to ask first. Thanks.

fknop commented

Yep I can do it. Just wanted to ask first. Thanks.

It's already done, but thanks !