From e5245909e3ed6071e45024c5a6b9f9df71619e7e Mon Sep 17 00:00:00 2001 From: Shimon Newman Date: Wed, 17 Jan 2024 22:09:17 +0200 Subject: [PATCH] Update src/Appwrite/Platform/Workers/Hamster.php Co-authored-by: Christy Jacob --- src/Appwrite/Platform/Workers/Hamster.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }