File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 33namespace Pharaonic \Laravel \Executor \Console ;
44
55use Illuminate \Console \Command ;
6+ use Pharaonic \Laravel \Executor \Facades \Executor as ExecutorFacade ;
67use Pharaonic \Laravel \Executor \Models \Executor ;
78
89class ExecuteRollbackCommand extends Command
@@ -20,7 +21,7 @@ class ExecuteRollbackCommand extends Command
2021 *
2122 * @var string
2223 */
23- protected $ description = 'Rollback the lastest executors that has been inserted. ' ;
24+ protected $ description = 'Rollback the latest executors that have been inserted. ' ;
2425
2526 /**
2627 * Execute the console command.
@@ -37,8 +38,9 @@ public function handle()
3738 return 0 ;
3839 }
3940
40- $ manager = app ('pharaonic.executor.manager ' );
41- $ items = $ manager ->pool ->collect ($ manager ->getRecords ())->getItems ();
41+ $ items = ExecutorFacade::getPool ()
42+ ->collect (ExecutorFacade::getRecords ())
43+ ->getItems ();
4244
4345 foreach ($ items as $ item ) {
4446 if ($ item ->model && in_array ($ item ->model ->batch , $ batches )) {
You can’t perform that action at this time.
0 commit comments