Update enabled_modules value

This commit is contained in:
David Bomba 2020-07-21 21:26:58 +10:00
parent 0d8d793a4c
commit 91c40b0517
5 changed files with 7 additions and 7 deletions

View File

@ -100,7 +100,7 @@ class DemoMode extends Command
$company = factory(\App\Models\Company::class)->create([
'account_id' => $account->id,
'slack_webhook_url' => config('ninja.notification.slack'),
'enabled_modules' => 8191,
'enabled_modules' => 32767,
]);
$settings = $company->settings;

View File

@ -139,7 +139,7 @@ class BaseController extends Controller
$includes = $transformer->getDefaultIncludes();
$includes = $this->getRequestIncludes($includes);
info(print_r($includes,1));
//info(print_r($includes,1));
$updated_at = request()->has('updated_at') ? request()->input('updated_at') : 0;
$updated_at = date('Y-m-d H:i:s', $updated_at);

View File

@ -48,10 +48,10 @@ class QueryLogging
$timeEnd = microtime(true);
$time = $timeEnd - $timeStart;
// Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
//if($count > 10)
Log::info($queries);
// Log::info($queries);
}
}

View File

@ -39,7 +39,7 @@ class StorePaymentRequest extends Request
{
$input = $this->all();
info(print_r($input,1));
//info(print_r($input,1));
$invoices_total = 0;
$credits_total = 0;

View File

@ -79,10 +79,10 @@ class ValidCreditsRules implements Rule
if(count($this->input['credits']) >=1 && count($this->input['invoices']) == 0){
$this->error_msg = "You must have an invoice set when using a credit";
$this->error_msg = "You must have an invoice set when using a credit in a payment";
return false;
}
return true;
}