]> BookStack Code Mirror - bookstack/blobdiff - app/References/ReferenceService.php
Added regenerate-references command test
[bookstack] / app / References / ReferenceService.php
index 7a1cf2fedcc0e4a17c58610a03fed171c891ad5a..fd7f74ae11f1330c9a985fc5a7a639ef18ad402d 100644 (file)
@@ -23,7 +23,7 @@ class ReferenceService
     {
         Reference::query()
             ->where('from_type', '=', (new Page())->getMorphClass())
-            ->truncate();
+            ->delete();
 
         Page::query()->select(['id', 'html'])->chunk(100, function(Collection $pages) {
             $this->updateForPages($pages->all());