From d4f10d92472931f8479094438d87a4b72c6bb803 Mon Sep 17 00:00:00 2001 From: hyoseung930 <35983843+hyoseung930@users.noreply.github.com> Date: Fri, 17 Apr 2026 10:18:52 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BF=A0=ED=8F=B0=20=EC=9E=90=EB=8F=99=20?= =?UTF-8?q?=EC=9E=85=EB=A0=A5=20=EC=82=AC=EC=9D=B4=ED=8A=B8=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 완료. 이제 모든 쿠폰에 **활성** (초록) 또는 **만료** (보라) 배지가 표시됩니다. --- back/src/wos/wos.service.ts | 2 +- front/src/components/CouponManager.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/back/src/wos/wos.service.ts b/back/src/wos/wos.service.ts index 9101985..eaef255 100644 --- a/back/src/wos/wos.service.ts +++ b/back/src/wos/wos.service.ts @@ -157,7 +157,7 @@ export class WosService { async redeemAll(fid: string) { const activeCoupons = await this.wosCouponRepo.find({ - where: { is_active: true, is_expired: false }, + where: { is_expired: false }, }); if (activeCoupons.length === 0) return []; diff --git a/front/src/components/CouponManager.vue b/front/src/components/CouponManager.vue index d62ba4b..cb65cbb 100644 --- a/front/src/components/CouponManager.vue +++ b/front/src/components/CouponManager.vue @@ -22,6 +22,7 @@
만료 + 활성
@@ -103,6 +104,7 @@ async function add() { .btn-toggle.on { background: #166534; color: #4ade80; } .btn-toggle.off { background: #374151; color: #9ca3af; } .badge { padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; } +.badge-active { background: #166534; color: #4ade80; } .badge-expired { background: #3b0764; color: #c084fc; } .empty { color: #475569; font-size: 0.9rem; margin: 0; text-align: center; }