]> BookStack Code Mirror - bookstack/blobdiff - app/Console/Commands/ClearViews.php
Added OIDC group sync functionality
[bookstack] / app / Console / Commands / ClearViews.php
index 678c64d330179893880f707db7cd0f8a705bf297..0fc6c0195663755e2f1072444ef72452158075c6 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace BookStack\Console\Commands;
 
+use BookStack\Actions\View;
 use Illuminate\Console\Command;
 
 class ClearViews extends Command
@@ -18,11 +19,10 @@ class ClearViews extends Command
      *
      * @var string
      */
-    protected $description = 'Clear all view-counts for all entities.';
+    protected $description = 'Clear all view-counts for all entities';
 
     /**
      * Create a new command instance.
-     *
      */
     public function __construct()
     {
@@ -36,7 +36,7 @@ class ClearViews extends Command
      */
     public function handle()
     {
-        \Views::resetAll();
+        View::clearAll();
         $this->comment('Views cleared');
     }
 }