diff --git a/src/Appwrite/Platform/Workers/Hamster.php b/src/Appwrite/Platform/Workers/Hamster.php index bfaed2ef06..255f3a3eb0 100644 --- a/src/Appwrite/Platform/Workers/Hamster.php +++ b/src/Appwrite/Platform/Workers/Hamster.php @@ -371,7 +371,7 @@ class Hamster extends Action $billingPlan = $membership->getAttribute('billingPlan', null); $billingPlanDowngrade = $membership->getAttribute('billingPlanDowngrade', null); - if (!empty($billingPlan) && empty($billingPlanDowngrade)) { + if (!empty($billingPlan) && is_null($billingPlanDowngrade)) { $statsPerOrganization['billing_plan'] = $billingPlan; }