Don't send reminders after downgrading

This commit is contained in:
Hillel Coren 2018-02-21 15:53:14 +02:00
parent a4d4b2b96c
commit aaab3b1fcf

View File

@ -194,6 +194,10 @@ class AccountController extends BaseController
} else {
if ($plan == PLAN_FREE) {
$company->discount = 0;
$ninjaClient = $this->accountRepo->getNinjaClient($account);
$ninjaClient->send_reminders = false;
$ninjaClient->save();
} else {
$company->plan_term = $term;
$company->plan_price = $newPlan['price'];