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; }