Skip to content

Commit

Permalink
update set message function v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jun 27, 2023
1 parent 8166878 commit a20bd39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/NotificationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public function setPayload(Request $request): void
public function setMessage(string $typeEvent): void
{
if (isset($this->payload->action)) {
$this->message = get_event_template($typeEvent . '/' . $this->payload->action, ['payload' => $this->payload]);
$this->message = get_event_template($typeEvent . '.' . $this->payload->action, ['payload' => $this->payload]);
} else {
$this->message = get_event_template($typeEvent . '/default', ['payload' => $this->payload]);
$this->message = get_event_template($typeEvent . '.default', ['payload' => $this->payload]);
}
}

Expand Down

0 comments on commit a20bd39

Please sign in to comment.