X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/bab27462aba7ec4370ce906913b663a13a289110..refs/pull/261/head:/app/Services/ViewService.php diff --git a/app/Services/ViewService.php b/app/Services/ViewService.php index 73b353d8f..3285745ce 100644 --- a/app/Services/ViewService.php +++ b/app/Services/ViewService.php @@ -37,7 +37,7 @@ class ViewService // Otherwise create new view count $entity->views()->save($this->view->create([ - 'user_id' => user()->id, + 'user_id' => $user->id, 'views' => 1 ]));