mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fixes for notifications (#3561)
This commit is contained in:
parent
8b0fe63eb5
commit
9d6da3e37b
@ -115,8 +115,9 @@ class EmailController extends BaseController
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$data = [];
|
$entity->service()->markSent()->save();
|
||||||
|
|
||||||
|
return $this->itemResponse($entity);
|
||||||
|
|
||||||
return response()->json($data, 200);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,8 +58,8 @@ class SendGenericNotification extends Notification implements ShouldQueue
|
|||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function via($notifiable)
|
public function via($notifiable)
|
||||||
{\Log::error("via");
|
{
|
||||||
return ['slack','mail'];
|
return ['mail'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -70,7 +70,7 @@ class SendGenericNotification extends Notification implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function toMail($notifiable)
|
public function toMail($notifiable)
|
||||||
{
|
{
|
||||||
\Log::error("to mail");
|
|
||||||
$subject = $this->generateEmailEntityHtml($this->entity, $this->subject, $this->contact);
|
$subject = $this->generateEmailEntityHtml($this->entity, $this->subject, $this->contact);
|
||||||
$body = $this->generateEmailEntityHtml($this->entity, $this->body, $this->contact);
|
$body = $this->generateEmailEntityHtml($this->entity, $this->body, $this->contact);
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ class SendGenericNotification extends Notification implements ShouldQueue
|
|||||||
|
|
||||||
public function toSlack($notifiable)
|
public function toSlack($notifiable)
|
||||||
{
|
{
|
||||||
\Log::error("slack");
|
|
||||||
return '';
|
return '';
|
||||||
// $logo = $this->company->present()->logo();
|
// $logo = $this->company->present()->logo();
|
||||||
// $amount = Number::formatMoney($this->invoice->amount, $this->invoice->client);
|
// $amount = Number::formatMoney($this->invoice->amount, $this->invoice->client);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user