From 91de6797c5b5e7724e6c43e9972c0f15e7f9aed5 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 9 Aug 2025 21:50:42 +0800 Subject: [PATCH] :bug: Another fix to prevent the subscription get wrong data --- DysonNetwork.Pass/Wallet/SubscriptionService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DysonNetwork.Pass/Wallet/SubscriptionService.cs b/DysonNetwork.Pass/Wallet/SubscriptionService.cs index d789e7b..c693324 100644 --- a/DysonNetwork.Pass/Wallet/SubscriptionService.cs +++ b/DysonNetwork.Pass/Wallet/SubscriptionService.cs @@ -431,6 +431,7 @@ public class SubscriptionService( .Where(s => s.EndedAt == null || s.EndedAt > now) .OrderByDescending(s => s.BegunAt) .FirstOrDefaultAsync(); + if (subscription is { IsAvailable: false }) subscription = null; // Cache the result if found (with 30 minutes expiry) if (subscription != null)