Skip to content

Commit fced599

Browse files
committed
Fix build
1 parent 85e6769 commit fced599

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/apps/backoffice/frontend/controllers/CoursesPostController.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export class CoursesPostController {
1313
}
1414

1515
private async createCourse(req: Request, res: Response) {
16-
await this.courseCreator.run({ id: req.body.id, name: req.body.name, duration: req.body.duration });
16+
await this.courseCreator.run({
17+
courseId: req.body.id,
18+
courseName: req.body.name,
19+
courseDuration: req.body.duration
20+
});
1721
req.flash('message', `Felicidades, el curso ${req.body.name} ha sido creado!`);
1822
res.redirect('/courses');
1923
}

0 commit comments

Comments
 (0)