Added marked_for_deletion and billing_plan_downgrade

to hamster export
This commit is contained in:
shimon 2024-01-22 09:28:45 +02:00
parent 6bd810cb3a
commit c116de29e1

View file

@ -344,7 +344,6 @@ class Hamster extends Action
/** /**
* @param Document $organization * @param Document $organization
* @param Database $dbForConsole * @param Database $dbForConsole
* @throws \Utopia\Database\Exception
*/ */
private function getStatsForOrganization(Document $organization, Database $dbForConsole): void private function getStatsForOrganization(Document $organization, Database $dbForConsole): void
{ {
@ -380,6 +379,8 @@ class Hamster extends Action
$statsPerOrganization['billing_start_date'] = $billingStartDate; $statsPerOrganization['billing_start_date'] = $billingStartDate;
} }
$statsPerOrganization['marked_for_deletion'] = $membership->getAttribute('markedForDeletion', 0);
$statsPerOrganization['billing_plan_downgrade'] = $billingPlanDowngrade;
$userId = $membership->getAttribute('userId', null); $userId = $membership->getAttribute('userId', null);
if ($userId) { if ($userId) {