fixes for migration
This commit is contained in:
parent
8ccb235461
commit
db95e9fad3
2 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ class NinjaPlanController extends Controller
|
|||
// $account = auth()->guard('contact')->user()->company->account;
|
||||
if(auth()->guard('contact')->user()->client->custom_value2){
|
||||
MultiDB::findAndSetDbByAccountKey(auth()->guard('contact')->user()->client->custom_value2);
|
||||
$account = Account::where('key', auth()->guard('contact')->user()->client->custom_value2);
|
||||
$account = Account::where('key', auth()->guard('contact')->user()->client->custom_value2)->first();
|
||||
$account->trial_started = now();
|
||||
$account->trial_plan = 'pro';
|
||||
$account->save();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue