Skip to content

Commit

Permalink
fix: arguments order switching limit and offset (#129)
Browse files Browse the repository at this point in the history
L22 limit and offset arguments were switched so the searcher was using the limit value instead of offset.
  • Loading branch information
coal182 committed Apr 20, 2023
1 parent 73f3701 commit 8d8fab0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export class SearchCoursesByCriteriaQueryHandler
const filters = Filters.fromValues(query.filters);
const order = Order.fromValues(query.orderBy, query.orderType);

return this.searcher.run(filters, order, query.offset, query.limit);
return this.searcher.run(filters, order, query.limit, query.offset);
}
}

0 comments on commit 8d8fab0

Please sign in to comment.