1
0
Fork 0
mirror of synced 2024-07-02 21:20:58 +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

@ -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 = [];