Skip to content

Commit

Permalink
chore: 사용된 기프티콘 예외처리 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimin0304 committed Dec 7, 2023
1 parent 8e3b3d1 commit f98383d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public String useGifticon(Member member, long gifticonId) throws NoSuchAlgorithm
Gifticon gifticon = gifticonRepository.findByIdAndMember(member, gifticonId)
.orElseThrow(() -> new EntityNotFoundException(ErrorCode.GIFTICON_NOT_FOUND));

if (gifticon.isActive() == false || gifticon.isUsed() == true)
if (gifticon.isActive() == false)
throw new BusinessException(ErrorCode.INACTIVE_GIFTION);

String base64Barcode = getAuthStringQRUse(gifticon.getBarcodeNum(), "switchcon", keyBytes);
Expand Down

0 comments on commit f98383d

Please sign in to comment.