diff --git a/src/main/kotlin/org/meogo/domain/post/service/CreatePostService.kt b/src/main/kotlin/org/meogo/domain/post/service/CreatePostService.kt index 3192aed..0378727 100644 --- a/src/main/kotlin/org/meogo/domain/post/service/CreatePostService.kt +++ b/src/main/kotlin/org/meogo/domain/post/service/CreatePostService.kt @@ -31,7 +31,7 @@ class CreatePostService( Post( title = request.title, content = request.content, - user = user!!, + user = user, date = LocalDateTime.now(), schoolId = schoolId, keyWord = keyWord, diff --git a/src/main/kotlin/org/meogo/domain/review/service/CreateReviewService.kt b/src/main/kotlin/org/meogo/domain/review/service/CreateReviewService.kt index 6041d31..c0e4f2c 100644 --- a/src/main/kotlin/org/meogo/domain/review/service/CreateReviewService.kt +++ b/src/main/kotlin/org/meogo/domain/review/service/CreateReviewService.kt @@ -36,7 +36,7 @@ class CreateReviewService( reviewRepository.save( Review( date = LocalDateTime.now(), - userId = user.id!!, + userId = user.id, schoolId = request.schoolId, star = request.star, content = request.content,