From 30379f7cc4dea9d255c6e57971f12348d5376b8c Mon Sep 17 00:00:00 2001 From: Jinwoo Lee Date: Tue, 7 Nov 2023 17:21:51 +0900 Subject: [PATCH] fix: modify voucher's is-shared --- .../swmaestro/repl/gifthub/vouchers/service/VoucherService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/swmaestro/repl/gifthub/vouchers/service/VoucherService.java b/src/main/java/org/swmaestro/repl/gifthub/vouchers/service/VoucherService.java index 5691c3d9..2a255a6a 100644 --- a/src/main/java/org/swmaestro/repl/gifthub/vouchers/service/VoucherService.java +++ b/src/main/java/org/swmaestro/repl/gifthub/vouchers/service/VoucherService.java @@ -268,7 +268,7 @@ public VoucherReadResponseDto mapToDto(Voucher voucher) { .expiresAt(voucher.getExpiresAt().toString()) .imageUrl(voucher.getImageUrl()) .accessible(voucher.getDeletedAt() == null) - .shared(giftCardService.isExist(voucher.getId())) + .shared(giftCardService.read(voucher.getId()).isEnable()) .build(); return voucherReadResponseDto; }