From c116de29e15f19bd21ee0fdfd4e8193c30e827ae Mon Sep 17 00:00:00 2001 From: shimon Date: Mon, 22 Jan 2024 09:28:45 +0200 Subject: [PATCH] Added marked_for_deletion and billing_plan_downgrade to hamster export --- src/Appwrite/Platform/Workers/Hamster.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/Hamster.php b/src/Appwrite/Platform/Workers/Hamster.php index 81970aa7d0..0da625c543 100644 --- a/src/Appwrite/Platform/Workers/Hamster.php +++ b/src/Appwrite/Platform/Workers/Hamster.php @@ -344,7 +344,6 @@ class Hamster extends Action /** * @param Document $organization * @param Database $dbForConsole - * @throws \Utopia\Database\Exception */ private function getStatsForOrganization(Document $organization, Database $dbForConsole): void { @@ -380,6 +379,8 @@ class Hamster extends Action $statsPerOrganization['billing_start_date'] = $billingStartDate; } + $statsPerOrganization['marked_for_deletion'] = $membership->getAttribute('markedForDeletion', 0); + $statsPerOrganization['billing_plan_downgrade'] = $billingPlanDowngrade; $userId = $membership->getAttribute('userId', null); if ($userId) {