Merge branch 'develop' into issue-213-missing-geojson
This commit is contained in:
commit
8ba2528b6d
2 changed files with 5 additions and 3 deletions
|
|
@ -42,9 +42,11 @@ class SendHasOrderedAnItemMail implements ShouldQueue
|
|||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
$emailTo = \config('arcadia.item_ordered_email_to');
|
||||
$emailTo = \config('mail.contactsList.arcadia.item_ordered_email_to');
|
||||
if (empty($emailTo)) {
|
||||
throw new \RuntimeException('Empty arcadia.item_ordered_email_to config, could not send mail');
|
||||
throw new \RuntimeException(
|
||||
'Empty mail.contactsList.arcadia.item_ordered_email_to config, could not send mail'
|
||||
);
|
||||
}
|
||||
Mail::queueOn('database', (new HasOrderedAnItem($this->itemData))->to($emailTo));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ trap stopQueues EXIT
|
|||
echo "Starting PHP queue workers..."
|
||||
|
||||
while $work; do
|
||||
php artisan queue:work --queue=default,database --sleep=3 --tries=3 --max-time=3600 --no-interaction
|
||||
php artisan queue:work database --queue=default,database --sleep=3 --tries=3 --max-time=3600 --no-interaction
|
||||
sleep 1
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue