Skip to content

Commit

Permalink
fixed notification..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jun 20, 2021
1 parent 2bb846d commit dcd079d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Livewire/Common/Notifications/Recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function getNotifications($limit = false)
foreach ($notifications->items() as $key => $notification) {
$data = (object) $notification->getAttribute('data');

$item = Document::{$this->type}()->where('id', $data[ $this->type'_id'])->first();
$item = Document::{$this->type}()->where('id', $data[$this->type . '_id'])->first();
$item->notification_id = $notification->getAttribute('id');

$items[] = $item;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Livewire/Common/Notifications/Reminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function getNotifications($limit = false)
foreach ($notifications->items() as $key => $notification) {
$data = (object) $notification->getAttribute('data');

$item = Document::{$this->type}()->where('id', $data[ $this->type'_id'])->first();
$item = Document::{$this->type}()->where('id', $data[$this->type . '_id'])->first();
$item->notification_id = $notification->getAttribute('id');

$items[] = $item;
Expand Down

0 comments on commit dcd079d

Please sign in to comment.