Skip to content

Commit

Permalink
[fix] 유저 삭제 시 게시글과 채소 전부 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
MinchoGreenT committed Nov 21, 2023
1 parent 3ef3694 commit 9cfea35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "community-service")
@FeignClient(url = "http://3.38.2.59:8082", name = "community-service")
public interface CommunityServiceFeignClient {

@DeleteMapping("/api/community/posting/all-posting/{userId}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "farm-service")
@FeignClient(url = "http://3.36.221.140:8081", name = "farm-service")
public interface FarmServiceFeignClient {

@DeleteMapping("/api/veggie/{userId}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,7 @@ public BaseResponseDto<Void> deleteUser(Long userId){

userRepository.deleteUser(userId);
communityServiceFeignClient.deleteAllPosting(userId);
// farmServiceFeignClient.deleteAllVeggies(userId);





farmServiceFeignClient.deleteAllVeggies(userId);

log.info("유저 계정 삭제 완료");

Expand Down

0 comments on commit 9cfea35

Please sign in to comment.