Skip to content

Commit d03f582

Browse files
author
ckabuo
committed
Fixed Notifications Shows Persistently
1 parent 7156ecf commit d03f582

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Modules/Users/Http/Controllers/Api/NotificationsController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,12 @@ public function update(Request $request, $id)
274274
if ($request->input('mark') == 'read')
275275
{
276276
$row->markAsRead();
277+
$row->save();
277278
}
278279
elseif ($request->input('mark') == 'unread')
279280
{
280281
$row->markAsUnread();
282+
$row->save();
281283
}
282284

283285
return new NotificationResource($row);

0 commit comments

Comments
 (0)