Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/WalletCheck.php
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | protected function suspendAccount() | ||||
|| $entitlement->entitleable_type == \App\User::class | || $entitlement->entitleable_type == \App\User::class | ||||
) { | ) { | ||||
$entitlement->entitleable->suspend(); | $entitlement->entitleable->suspend(); | ||||
} | } | ||||
} | } | ||||
$label = "Account suspended"; | $label = "Account suspended"; | ||||
$this->sendMail(\App\Mail\NegativeBalanceSuspended::class, false, $label); | $this->sendMail(\App\Mail\NegativeBalanceSuspended::class, true, $label); | ||||
$now = \Carbon\Carbon::now()->toDateTimeString(); | $now = \Carbon\Carbon::now()->toDateTimeString(); | ||||
$this->wallet->setSetting('balance_warning_suspended', $now); | $this->wallet->setSetting('balance_warning_suspended', $now); | ||||
} | } | ||||
/** | /** | ||||
* Send the last warning before delete | * Send the last warning before delete | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |