Skip to content

Commit

Permalink
Fix : Review 수정시 삭제되는 현상 발생
Browse files Browse the repository at this point in the history
  • Loading branch information
dltjdgh0428 committed Mar 16, 2024
1 parent 5bc591d commit e3e0f58
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ dependencies {
testImplementation 'org.springframework.security:spring-security-test'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
//테스트를위한
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

}
tasks.withType(JavaCompile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public class ReviewService {
Review review = reviewRepository.findById(reviewId)
.orElseThrow(() -> new EntityNotFoundException(CustomErrorCode.REVIEW_NOT_FOUND));
review.changeReview(reviewRespDto);
reviewRepository.save(review);
}

public void 등록또는수정전예외처리(ReviewRespDto reviewRespDto) {
Expand Down
10 changes: 0 additions & 10 deletions src/main/resources/templates/homePage.html

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/resources/templates/loginPage.html

This file was deleted.

0 comments on commit e3e0f58

Please sign in to comment.