X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/93fd869ba36cb8e74690af95d28236084d159b63..refs/pull/3616/head:/app/Actions/View.php diff --git a/app/Actions/View.php b/app/Actions/View.php index 62e03d9f4..16961bd91 100644 --- a/app/Actions/View.php +++ b/app/Actions/View.php @@ -1,4 +1,6 @@ - $user->id, ], ['views' => 0]); - $view->save(['views' => $view->views + 1]); + $view->forceFill(['views' => $view->views + 1])->save(); return $view->views; }