mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for using dispatchSync()
This commit is contained in:
parent
2ec8e21506
commit
a9b3522081
@ -229,7 +229,7 @@ class NinjaMailerJob implements ShouldQueue
|
|||||||
->mailable
|
->mailable
|
||||||
->from($user->email, $user->name())
|
->from($user->email, $user->name())
|
||||||
->withSymfonyMessage(function ($message) use($token) {
|
->withSymfonyMessage(function ($message) use($token) {
|
||||||
$message->getHeaders()->addTextHeader('GmailToken', $token);
|
$message->getHeaders()->addTextHeader('gmailtoken', $token);
|
||||||
});
|
});
|
||||||
|
|
||||||
sleep(rand(1,3));
|
sleep(rand(1,3));
|
||||||
@ -299,7 +299,7 @@ class NinjaMailerJob implements ShouldQueue
|
|||||||
->mailable
|
->mailable
|
||||||
->from($user->email, $user->name())
|
->from($user->email, $user->name())
|
||||||
->withSymfonyMessage(function ($message) use($token) {
|
->withSymfonyMessage(function ($message) use($token) {
|
||||||
$message->getHeaders()->addTextHeader('GmailToken', $token);
|
$message->getHeaders()->addTextHeader('gmailtoken', $token);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ class StartMigration implements ShouldQueue
|
|||||||
throw new NonExistingMigrationFile('Migration file does not exist, or it is corrupted.');
|
throw new NonExistingMigrationFile('Migration file does not exist, or it is corrupted.');
|
||||||
}
|
}
|
||||||
|
|
||||||
Import::dispatchSync($file, $this->company, $this->user);
|
(new Import($file, $this->company, $this->user))->handle();
|
||||||
|
|
||||||
Storage::deleteDirectory(public_path("storage/migrations/{$filename}"));
|
Storage::deleteDirectory(public_path("storage/migrations/{$filename}"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user