Skip to content

Commit 37741d7

Browse files
authored
Merge pull request #171 from Runnect/dev
[Fix] - ๊ณต๊ฐœ ์ฝ”์Šค ์‚ญ์ œ ์‹œ FK ์ œ์•ฝ ์œ„๋ฐ˜ ์ˆ˜์ • (dev โ†’ main)
2 parents 13fc603 + 8c4fac6 commit 37741d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

โ€Žsrc/main/java/org/runnect/server/publicCourse/service/PublicCourseService.javaโ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ public DeletePublicCoursesResponseDto deletePublicCourses(
361361
ErrorStatus.PERMISSION_DENIED_PUBLIC_COURSE_DELETE_EXCEPTION.getMessage());
362362
});
363363

364+
//์‚ญ์ œ์ „ ์—ฐ๊ด€๋œ ์Šคํฌ๋žฉ ๋จผ์ € ์‚ญ์ œ
365+
scrapRepository.deleteByPublicCourseIn(publicCourses);
366+
364367
//์‚ญ์ œ์ „ course์˜ isPrivate update
365368
publicCourses.forEach(publicCourse -> publicCourse.getCourse().retrieveCourse());
366369

0 commit comments

Comments
ย (0)