From 879bca1fd1679403da41849546258fc2ba2b09af Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 19 Aug 2022 19:19:17 +1000 Subject: [PATCH] Refactor email limits on hosted --- app/Models/Account.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index b75a7ce327df..915a3ac979b8 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -33,7 +33,7 @@ class Account extends BaseModel use PresentableTrait; use MakesHash; - private $free_plan_email_quota = 50; + private $free_plan_email_quota = 20; private $paid_plan_email_quota = 500; /** @@ -390,11 +390,11 @@ class Account extends BaseModel if($this->isPaid()){ $limit = $this->paid_plan_email_quota; - $limit += Carbon::createFromTimestamp($this->created_at)->diffInMonths() * 100; + $limit += Carbon::createFromTimestamp($this->created_at)->diffInMonths() * 50; } else{ $limit = $this->free_plan_email_quota; - $limit += Carbon::createFromTimestamp($this->created_at)->diffInMonths() * 50; + $limit += Carbon::createFromTimestamp($this->created_at)->diffInMonths() * 10; } return min($limit, 5000);