Skip to content

Commit 28ee423

Browse files
committed
fix: update pagination handling in _find method
1 parent 320e2b0 commit 28ee423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class SequelizeAdapter<
257257
params: ServiceParams = {} as ServiceParams,
258258
): Promise<Paginated<Result> | Result[]> {
259259
const Model = this.getModel(params)
260-
const { paginate } = this.filterQuery(params)
260+
const { paginate } = this.getOptions(params)
261261
const sequelizeOptions = this.paramsToAdapter(null, params)
262262

263263
if (!paginate || !paginate.default) {

0 commit comments

Comments
 (0)