1
0
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:
David Bomba 2022-07-31 21:51:35 +10:00
parent 2ec8e21506
commit a9b3522081
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}); });
} }

View File

@ -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}"));