Skip to content

Commit

Permalink
[FIX] log
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjy4974 committed Jan 26, 2024
1 parent 9e76354 commit f0d3880
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ public Mono<Void> start(
}

// 경매 종료
@PatchMapping("/bids/end/{auctionId}")
public Mono<Void> end(
@RequestHeader(name = "role") String role,
@PathVariable String auctionId
) {
return bidFacade.end(auctionId);
}
// @PatchMapping("/bids/end/{auctionId}")
// public Mono<Void> end(
// @RequestHeader(name = "role") String role,
// @PathVariable String auctionId
// ) {
// return bidFacade.end(auctionId);
// }
}
20 changes: 10 additions & 10 deletions src/main/java/com/dailyon/auctionservice/facade/BidFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public Mono<Void> start(String auctionId) {
.then();
}

public Mono<Void> end(String auctionId) {
log.info("이것도 나오면안댐");
return auctionService
.endAuction(auctionId)
.flatMap(
auction -> {
ChatPayload<Object> payload = ChatPayload.of(ChatCommand.AUCTION_CLOSE, auctionId);
return chatHandler.broadCast(payload).then();
});
}
// public Mono<Void> end(String auctionId) {
// log.info("이것도 나오면안댐");
// return auctionService
// .endAuction(auctionId)
// .flatMap(
// auction -> {
// ChatPayload<Object> payload = ChatPayload.of(ChatCommand.AUCTION_CLOSE, auctionId);
// return chatHandler.broadCast(payload).then();
// });
// }
}

0 comments on commit f0d3880

Please sign in to comment.