parent
685a3998a2
commit
d241b4fa7a
|
@ -47,7 +47,7 @@ class CreatorCommunityService(
|
|||
fun createCommunityPost(postImage: MultipartFile?, requestString: String, member: Member) {
|
||||
val request = objectMapper.readValue(requestString, CreateCommunityPostRequest::class.java)
|
||||
|
||||
if (request.price > 0 && postImage != null) {
|
||||
if (request.price > 0 && postImage == null) {
|
||||
throw SodaException("유료 게시글 등록을 위해서는 이미지가 필요합니다.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue