mirror of
https://github.com/bitwarden/server
synced 2025-12-18 09:13:19 +00:00
filter canceled orgs
This commit is contained in:
@@ -206,11 +206,14 @@ namespace Bit.Billing.Controllers
|
||||
});
|
||||
foreach(var sub in subscriptions)
|
||||
{
|
||||
ids = GetIdsFromMetaData(sub.Metadata);
|
||||
if(ids.Item1.HasValue || ids.Item2.HasValue)
|
||||
if(sub.Status != "canceled")
|
||||
{
|
||||
subscription = sub;
|
||||
break;
|
||||
ids = GetIdsFromMetaData(sub.Metadata);
|
||||
if(ids.Item1.HasValue || ids.Item2.HasValue)
|
||||
{
|
||||
subscription = sub;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user