@@ -28,8 +28,9 @@ |
||
28 | 28 | { |
29 | 29 | $notification = get_authenticated_user()->unreadNotifications()->find($id); |
30 | 30 | |
31 | - if ($notification === null) |
|
32 | - throw new NotFoundHttpException("Could not find notification"); |
|
31 | + if ($notification === null) { |
|
32 | + throw new NotFoundHttpException("Could not find notification"); |
|
33 | + } |
|
33 | 34 | |
34 | 35 | $notification->markAsRead(); |
35 | 36 | return response()->json([ |