fixed notification..

This commit is contained in:
Cüneyt Şentürk 2021-06-20 12:26:58 +03:00
parent 2bb846d131
commit dcd079d8ac
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class Recurring extends Component
foreach ($notifications->items() as $key => $notification) { foreach ($notifications->items() as $key => $notification) {
$data = (object) $notification->getAttribute('data'); $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'); $item->notification_id = $notification->getAttribute('id');
$items[] = $item; $items[] = $item;

View File

@ -69,7 +69,7 @@ class Reminder extends Component
foreach ($notifications->items() as $key => $notification) { foreach ($notifications->items() as $key => $notification) {
$data = (object) $notification->getAttribute('data'); $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'); $item->notification_id = $notification->getAttribute('id');
$items[] = $item; $items[] = $item;