diff --git a/src/Appwrite/Platform/Workers/Hamster.php b/src/Appwrite/Platform/Workers/Hamster.php index dcc4404dda..1830f4b9b1 100644 --- a/src/Appwrite/Platform/Workers/Hamster.php +++ b/src/Appwrite/Platform/Workers/Hamster.php @@ -428,7 +428,7 @@ class Hamster extends Action Query::equal('userInternalId', [$user->getInternalId()]) ]); - if (!empty($organization) || !$organization->isEmpty()) { + if (!empty($organization) && !$organization->isEmpty()) { $billingPlan = $organization->getAttribute('billingPlan', null); $billingPlanDowngrade = $organization->getAttribute('billingPlanDowngrade', null);