diff --git a/src/Appwrite/Platform/Workers/Hamster.php b/src/Appwrite/Platform/Workers/Hamster.php index c0c1ad8936..81970aa7d0 100644 --- a/src/Appwrite/Platform/Workers/Hamster.php +++ b/src/Appwrite/Platform/Workers/Hamster.php @@ -431,7 +431,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)) { $statsPerUser['billing_plan'] = $billingPlan; }