Fixes for notifications (#3561)
This commit is contained in:
parent
8b0fe63eb5
commit
9d6da3e37b
2 changed files with 8 additions and 7 deletions
|
|
@ -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…
Add table
Reference in a new issue