Skip to content

Commit

Permalink
fix : issue with @transaction proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Nov 8, 2023
1 parent ccba88d commit e9b36b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public Mono<ResponseEntity<Object>> deleteReactivePostAndCommentsById(Long id) {
reactivePost ->
reactiveCommentsRepository
.deleteAllByPostId(reactivePost.getId())
.then(deleteReactivePostById(reactivePost.getId()))
.then(
reactivePostRepository.deleteById(
reactivePost.getId()))
.then(Mono.just(ResponseEntity.noContent().build())))
.switchIfEmpty(Mono.just(ResponseEntity.notFound().build()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TestApplication {
@Bean
@ServiceConnection
PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>("postgres:15.4-alpine");
return new PostgreSQLContainer<>("postgres:16.0-alpine");
}

public static void main(String[] args) {
Expand Down

0 comments on commit e9b36b5

Please sign in to comment.