Skip to content

Commit

Permalink
FIX: amount를 받는 팩토리 메서드 에러 발생 시 asDomainException 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
saewoo1 committed Oct 25, 2024
1 parent 76e942b commit b3c2463
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static ItemHistory coin(Long userId, Long itemId, LocalDateTime assignedA
Long amount) {
ItemHistory itemHistory = new ItemHistory(userId, itemId, assignedAt, amount);
if (!itemHistory.isValid()) {
throw ExceptionStatus.INVALID_ARGUMENT.asControllerException();
throw ExceptionStatus.INVALID_ARGUMENT.asDomainException();
}
return itemHistory;
}
Expand Down

0 comments on commit b3c2463

Please sign in to comment.