mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Fixes for passing variables to artisan commands
This commit is contained in:
parent
d427812cc3
commit
d6f1caef73
@ -44,7 +44,7 @@ class SchedulerCheck implements ShouldQueue
|
||||
{
|
||||
|
||||
try {
|
||||
Artisan::call('migrate', ['--force' => 'true']);
|
||||
Artisan::call('migrate', ['--force' => true]);
|
||||
} catch (\Exception $e) {
|
||||
nlog("I wasn't able to migrate the data.");
|
||||
nlog($e->getMessage());
|
||||
|
@ -57,9 +57,9 @@ class UpdateUserLastLogin implements ShouldQueue
|
||||
if($user->ip != $ip)
|
||||
{
|
||||
$nmo = new NinjaMailerObject;
|
||||
$nmo->mailable = new UserLoggedIn($user, $user->account->companies()->first(), $ip);
|
||||
$nmo->company = $user->account->companies()->first();
|
||||
$nmo->settings = $user->account->companies()->first()->settings;
|
||||
$nmo->mailable = new UserLoggedIn($user, $user->account->companies->first(), $ip);
|
||||
$nmo->company = $user->account->companies->first();
|
||||
$nmo->settings = $user->account->companies->first()->settings;
|
||||
$nmo->to_user = $user;
|
||||
NinjaMailerJob::dispatch($nmo);
|
||||
|
||||
|
@ -133,7 +133,7 @@ class Company extends BaseModel
|
||||
|
||||
public function all_documents()
|
||||
{
|
||||
return $this->HasMany(Document::class);
|
||||
return $this->hasMany(Document::class);
|
||||
}
|
||||
|
||||
public function getEntityType()
|
||||
|
Loading…
Reference in New Issue
Block a user