Skip to content

Commit

Permalink
fix: filterCourse
Browse files Browse the repository at this point in the history
  • Loading branch information
Orlandoc0107 committed Dec 16, 2024
1 parent 986183c commit 5d0c5c5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions server/apps/courses/src/courses/courses.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ export class CoursesController {
const { page, limit, filters } = data;

try {
const courses = await this.coursesService.filterCourses(filters, page, limit);
return {
statusCode: 200,
success: courses.success,
message: courses.message,
data: courses.courses,
};
return 'test'
// const courses = await this.coursesService.filterCourses(filters, page, limit);
// return {
// statusCode: 200,
// success: courses.success,
// message: courses.message,
// data: courses.courses,
// };
} catch (error) {
Logger.error('Error al filtrar los cursos:', error.message);
return {
Expand Down

0 comments on commit 5d0c5c5

Please sign in to comment.