cannblw / knex-paginator

Simple paginator for Knex. It adds the .paginate() function to Knex's query builder.
15 stars 10 forks source link

Fix null countQuery on empty set #13

Open alexlau811 opened 5 years ago

alexlau811 commented 5 years ago

If the query returns no result, the countQuery will be undefined and throw an error on lengthAware.result

Testing environment: