mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for notifications (#3561)
This commit is contained in:
parent
8b0fe63eb5
commit
9d6da3e37b
@ -114,9 +114,10 @@ class EmailController extends BaseController
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$data = [];
|
||||
|
||||
return response()->json($data, 200);
|
||||
$entity->service()->markSent()->save();
|
||||
|
||||
return $this->itemResponse($entity);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -58,8 +58,8 @@ class SendGenericNotification extends Notification implements ShouldQueue
|
||||
* @return array
|
||||
*/
|
||||
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)
|
||||
{
|
||||
\Log::error("to mail");
|
||||
|
||||
$subject = $this->generateEmailEntityHtml($this->entity, $this->subject, $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)
|
||||
{
|
||||
\Log::error("slack");
|
||||
|
||||
return '';
|
||||
// $logo = $this->company->present()->logo();
|
||||
// $amount = Number::formatMoney($this->invoice->amount, $this->invoice->client);
|
||||
|
Loading…
x
Reference in New Issue
Block a user