fixed notification..
This commit is contained in:
parent
2bb846d131
commit
dcd079d8ac
@ -69,7 +69,7 @@ class Recurring extends Component
|
||||
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;
|
||||
|
@ -69,7 +69,7 @@ class Reminder extends Component
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user