🐛 Trying to fix more subscription issue

This commit is contained in:
2025-08-09 22:52:02 +08:00
parent 765be4f214
commit 1c52b4d661
2 changed files with 5 additions and 3 deletions

View File

@@ -399,6 +399,7 @@ public class SubscriptionService(
.Where(s => s.AccountId == accountId && identifiers.Contains(s.Identifier))
.OrderByDescending(s => s.BegunAt)
.FirstOrDefaultAsync();
if (subscription is { IsAvailable: false }) subscription = null;
// Cache the result if found (with 5 minutes expiry)
if (subscription != null)