Skip to content

Commit

Permalink
add: required attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Jul 14, 2024
1 parent fa285dc commit 6452822
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public SmeemResponse<?> signOut(Principal principal) {

@ResponseStatus(HttpStatus.NO_CONTENT)
@DeleteMapping
public SmeemResponse<?> withdraw(Principal principal, @RequestBody WithdrawRequest request) {
public SmeemResponse<?> withdraw(Principal principal, @RequestBody(required = false) WithdrawRequest request) {
val memberId = smeemConverter.toMemberId(principal);
authUseCase.withdraw(memberId, request);
return SmeemResponse.of(SmeemMessage.WITHDRAW);
Expand Down

0 comments on commit 6452822

Please sign in to comment.