Skip to content

Commit 078040e

Browse files
committed
Typescript Bootcamp
1 parent cf7c651 commit 078040e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rest-api/src/models/populate-db.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ async function populateDb() {
3737

3838
const lesson = lessonsRepository.create(lessonData);
3939

40+
lesson.course = course;
41+
4042
await lessonsRepository.save(lesson);
4143
}
4244

0 commit comments

Comments
 (0)