mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
filter canceled orgs
This commit is contained in:
parent
594c9e9e3e
commit
7d36a0d398
@ -206,11 +206,14 @@ namespace Bit.Billing.Controllers
|
|||||||
});
|
});
|
||||||
foreach(var sub in subscriptions)
|
foreach(var sub in subscriptions)
|
||||||
{
|
{
|
||||||
ids = GetIdsFromMetaData(sub.Metadata);
|
if(sub.Status != "canceled")
|
||||||
if(ids.Item1.HasValue || ids.Item2.HasValue)
|
|
||||||
{
|
{
|
||||||
subscription = sub;
|
ids = GetIdsFromMetaData(sub.Metadata);
|
||||||
break;
|
if(ids.Item1.HasValue || ids.Item2.HasValue)
|
||||||
|
{
|
||||||
|
subscription = sub;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user