chore: update query param type in pagination helper
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import { QueryBuilder, Model } from 'objection';
|
import { Model } from 'objection';
|
||||||
|
import ExtendedQueryBuilder from '../models/query-builder';
|
||||||
|
|
||||||
const paginate = async (
|
const paginate = async (
|
||||||
query: QueryBuilder<Model, Model[]>,
|
query: ExtendedQueryBuilder<Model, Model[]>,
|
||||||
limit: number,
|
limit: number,
|
||||||
offset: number
|
offset: number
|
||||||
) => {
|
) => {
|
||||||
|
Reference in New Issue
Block a user