1
0
Fork 0
mirror of synced 2024-07-01 04:30:59 +12:00

Added marked_for_deletion and billing_plan_downgrade

to hamster export
This commit is contained in:
shimon 2024-01-22 14:48:25 +02:00
parent e9a13fe93c
commit d220c2bdd7

View file

@ -226,7 +226,7 @@ class Hamster extends Action
$billing = $this->getBillingDetails($organization);
$statsPerProject['billing_plan'] = $billing['billing_plan'] ?? null;
$statsPerProject['billing_start_date'] = $billing['billing_start_date'] ?? null;
/** Get Domains */
$statsPerProject['custom_domains'] = $dbForConsole->count('rules', [
Query::equal('projectInternalId', [$project->getInternalId()]),
@ -429,6 +429,7 @@ class Hamster extends Action
Query::equal('userInternalId', [$user->getInternalId()])
]);
$billing = $this->getBillingDetails($organization);
$statsPerUser['billing_plan'] = $billing['billing_plan'] ?? null;
$statsPerUser['billing_start_date'] = $billing['billing_start_date'] ?? null;
@ -468,7 +469,7 @@ class Hamster extends Action
}
}
private function getBillingDetails(Document $team): array
private function getBillingDetails(bool|Document $team): array
{
$billing = [];