Skip to content

Commit 0028b6e

Browse files
committed
Ignore FileCourseRepository generated files
1 parent 88b9fbf commit 0028b6e

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
dist/
33
.tmp
4+
src/Contexts/Mooc/Courses/infrastructure/courses.*
Binary file not shown.
-57 Bytes
Binary file not shown.

src/apps/mooc_backend/controllers/CoursePutController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class CoursePutController implements Controller {
1414
try {
1515
await this.createCourse.run(id, name, duration);
1616
} catch (e) {
17-
res.status(500).json(e);
17+
res.status(httpStatus.INTERNAL_SERVER_ERROR).json(e);
1818
}
1919

2020
res.status(httpStatus.CREATED).send();

0 commit comments

Comments
 (0)