Skip to content
Snippets Groups Projects
Commit 7fbbd08d authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(notifications): retrieve activity from database instead of getting cache

parent 689831c2
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ class ActivityModel extends BaseUuidModel
*/
protected function notify(array $data): array
{
$activity = (new self())->getActivityById(is_array($data['id']) ? $data['id'][0] : $data['id']);
$activity = (new self())->find(is_array($data['id']) ? $data['id'][0] : $data['id']);
if (! $activity instanceof Activity) {
return $data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment