Update src/Appwrite/Platform/Workers/Hamster.php

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Shimon Newman 2024-01-17 22:09:17 +02:00 committed by GitHub
parent 3f63b87ea6
commit e5245909e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}