Explorar el Código

Update StatusPipeline

Daniel Supernault hace 6 años
padre
commit
b86a9d9524
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Jobs/StatusPipeline/StatusDelete.php

+ 1 - 1
app/Jobs/StatusPipeline/StatusDelete.php

@@ -104,7 +104,7 @@ class StatusDelete implements ShouldQueue
             Report::whereObjectType('App\Status')
                 ->whereObjectId($status->id)
                 ->delete();
-            $status->delete();
+            $status->forceDelete();
         });
 
         return true;