mirror of
https://github.com/bitwarden/server.git
synced 2024-11-23 12:25:16 +01:00
filter canceled orgs
This commit is contained in:
parent
594c9e9e3e
commit
7d36a0d398
@ -205,6 +205,8 @@ namespace Bit.Billing.Controllers
|
|||||||
CustomerId = charge.CustomerId
|
CustomerId = charge.CustomerId
|
||||||
});
|
});
|
||||||
foreach(var sub in subscriptions)
|
foreach(var sub in subscriptions)
|
||||||
|
{
|
||||||
|
if(sub.Status != "canceled")
|
||||||
{
|
{
|
||||||
ids = GetIdsFromMetaData(sub.Metadata);
|
ids = GetIdsFromMetaData(sub.Metadata);
|
||||||
if(ids.Item1.HasValue || ids.Item2.HasValue)
|
if(ids.Item1.HasValue || ids.Item2.HasValue)
|
||||||
@ -214,6 +216,7 @@ namespace Bit.Billing.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(ids.Item1.HasValue || ids.Item2.HasValue)
|
if(ids.Item1.HasValue || ids.Item2.HasValue)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user