mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 12:34:37 -04:00
Tweak email delays
This commit is contained in:
parent
59549e02e9
commit
176fb66391
@ -131,8 +131,8 @@ class EmailController extends BaseController
|
|||||||
|
|
||||||
$entity_obj->service()->markSent()->save();
|
$entity_obj->service()->markSent()->save();
|
||||||
|
|
||||||
EmailEntity::dispatch($invitation->fresh(), $invitation->company, $template, $data)
|
EmailEntity::dispatch($invitation->fresh(), $invitation->company, $template, $data);
|
||||||
->delay(now()->addSeconds(30));
|
// ->delay(now()->addSeconds(30));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,10 +107,6 @@ class TemplateEmail extends Mailable
|
|||||||
$message->invitation = $this->invitation;
|
$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) {
|
foreach ($this->build_email->getAttachments() as $file) {
|
||||||
|
|
||||||
if(is_string($file))
|
if(is_string($file))
|
||||||
|
@ -33,10 +33,6 @@ trait Uploadable
|
|||||||
if ($file) {
|
if ($file) {
|
||||||
$path = UploadAvatar::dispatchNow($file, $company->company_key);
|
$path = UploadAvatar::dispatchNow($file, $company->company_key);
|
||||||
|
|
||||||
//$path = str_replace(config("ninja.app_url"), "", $path);
|
|
||||||
|
|
||||||
info("the path {$path}");
|
|
||||||
|
|
||||||
if ($path) {
|
if ($path) {
|
||||||
$settings = $entity->settings;
|
$settings = $entity->settings;
|
||||||
$settings->company_logo = $path;
|
$settings->company_logo = $path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user