Skip to content

Commit

Permalink
fix: nullable, hookLogger value
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Jul 23, 2024
1 parent eea5818 commit 35855fc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void withdraw(long memberId, WithdrawRequest request) {
if (request != null) {
memberPort.saveWithdraw(request.toDomain());
hookLogger.send(LoggingMessage.withdraw(
String.format("[%s] %s", request.withdrawType(), request.withdrawType().describeConstable()),
String.format("[%s] %s", request.withdrawType(), request.withdrawType().getDescription()),
request.reason()));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ public class Withdraw {
public Long id;
@NotNull
private WithdrawType withdrawType;
@NotNull
private String reason;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class WithdrawEntity extends BaseEntity {
@Enumerated(EnumType.STRING)
@Column(nullable = false)
private WithdrawType withdrawType;
@Column(nullable = false)
private String reason;

public WithdrawEntity(Withdraw withdraw) {
Expand Down

0 comments on commit 35855fc

Please sign in to comment.