Tweak email delays

This commit is contained in:
David Bomba 2021-07-24 11:34:09 +10:00
parent 59549e02e9
commit 176fb66391
3 changed files with 2 additions and 10 deletions

View File

@ -131,8 +131,8 @@ class EmailController extends BaseController
$entity_obj->service()->markSent()->save();
EmailEntity::dispatch($invitation->fresh(), $invitation->company, $template, $data)
->delay(now()->addSeconds(30));
EmailEntity::dispatch($invitation->fresh(), $invitation->company, $template, $data);
// ->delay(now()->addSeconds(30));
}

View File

@ -107,10 +107,6 @@ class TemplateEmail extends Mailable
$message->invitation = $this->invitation;
});
/*TODO insert another check here for whether the attachment exists */
nlog($this->build_email->getAttachments());
foreach ($this->build_email->getAttachments() as $file) {
if(is_string($file))

View File

@ -33,10 +33,6 @@ trait Uploadable
if ($file) {
$path = UploadAvatar::dispatchNow($file, $company->company_key);
//$path = str_replace(config("ninja.app_url"), "", $path);
info("the path {$path}");
if ($path) {
$settings = $entity->settings;
$settings->company_logo = $path;