Skip to content

Commit 8d8fab0

Browse files
authored
fix: arguments order switching limit and offset (#129)
L22 limit and offset arguments were switched so the searcher was using the limit value instead of offset.
1 parent 73f3701 commit 8d8fab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Contexts/Backoffice/Courses/application/SearchByCriteria/SearchCoursesByCriteriaQueryHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ export class SearchCoursesByCriteriaQueryHandler
1919
const filters = Filters.fromValues(query.filters);
2020
const order = Order.fromValues(query.orderBy, query.orderType);
2121

22-
return this.searcher.run(filters, order, query.offset, query.limit);
22+
return this.searcher.run(filters, order, query.limit, query.offset);
2323
}
2424
}

0 commit comments

Comments
 (0)