Skip to content

Commit

Permalink
chore: 리뷰 여러개 작성 가능
Browse files Browse the repository at this point in the history
  • Loading branch information
cogns committed Nov 4, 2024
1 parent 989eff8 commit d41df8b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backend/apigateway/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ext {
dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
Expand Down
2 changes: 1 addition & 1 deletion backend/live/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
annotationProcessor 'org.projectlombok:lombok'
// implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
implementation 'org.springframework.kafka:spring-kafka'
Expand Down
2 changes: 1 addition & 1 deletion backend/member/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
annotationProcessor 'org.projectlombok:lombok'
// implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
implementation 'org.springframework.kafka:spring-kafka'
Expand Down
2 changes: 1 addition & 1 deletion backend/order/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
annotationProcessor 'org.projectlombok:lombok'
implementation 'io.jsonwebtoken:jjwt:0.9.1'
// implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
implementation 'org.springframework.kafka:spring-kafka'
Expand Down
2 changes: 1 addition & 1 deletion backend/product/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.mindrot:jbcrypt:0.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public void createReview(Long packageProductId, Long memberId, ReviewCreateReque
// 패키지 상품 조회
PackageProduct packageProduct = packageProductRepository.findByIdOrThrow(packageProductId);

// 이미 리뷰가 존재하는지 확인
if (reviewRepository.findByPackageProductIdAndMemberId(packageProductId, memberId).isPresent()) {
throw new BaseCustomException(REVIEW_ALREADY_EXIST);
}
// // 이미 리뷰가 존재하는지 확인
// if (reviewRepository.findByPackageProductIdAndMemberId(packageProductId, memberId).isPresent()) {
// throw new BaseCustomException(REVIEW_ALREADY_EXIST);
// }

// Review 엔티티 생성 및 저장
Review review = request.toEntity(packageProduct, memberId);
Expand Down

0 comments on commit d41df8b

Please sign in to comment.