From 621bc26d57db418ef4fa34129aadf5384adb939b Mon Sep 17 00:00:00 2001 From: soohyeon Date: Thu, 19 Sep 2024 10:43:05 +0900 Subject: [PATCH] build error --- .../kotlin/org/meogo/domain/post/service/CreatePostService.kt | 2 +- .../org/meogo/domain/review/service/CreateReviewService.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,