From 6bd810cb3aa7ffd1a1b40b0529a08ae6f7adf531 Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 17 Jan 2024 22:19:00 +0200 Subject: [PATCH] hamster additions --- 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 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; }