From 90b33cd744b84dec7a04639e8ec5a9b7aa2e3fd7 Mon Sep 17 00:00:00 2001 From: HyuckJuneHong Date: Fri, 1 Dec 2023 00:22:04 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20String=20to=20Long=20Error=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/domain/coupon/repository/CouponManageRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/moabam/api/domain/coupon/repository/CouponManageRepository.java b/src/main/java/com/moabam/api/domain/coupon/repository/CouponManageRepository.java index 5dc248fe..9065e378 100644 --- a/src/main/java/com/moabam/api/domain/coupon/repository/CouponManageRepository.java +++ b/src/main/java/com/moabam/api/domain/coupon/repository/CouponManageRepository.java @@ -31,10 +31,11 @@ public void addIfAbsentQueue(String couponName, Long memberId, double registerTi } public Set rangeQueue(String couponName, long start, long end) { + return zSetRedisRepository .range(requireNonNull(couponName), start, end) .stream() - .map(Long.class::cast) + .map(memberId -> Long.parseLong(String.valueOf(memberId))) .collect(Collectors.toSet()); }