Account cleanup

This commit is contained in:
David Bomba 2021-04-07 12:40:48 +10:00
parent 73e7aadaad
commit 38a648866c

View File

@ -243,15 +243,11 @@ class Account extends BaseModel
if ($trial_plan && $include_trial) {
$trial_started = $this->trial_started;
$trial_expires = $this->trial_started->addSeconds($this->trial_duration);
// $trial_expires->modify('+2 weeks');
if($trial_expires->greaterThan(now())){
$trial_active = true;
}
// if ($trial_expires >= date_create()) {
// $trial_active = true;
// }
}
$plan_active = false;