Skip to content

Commit 6c9c747

Browse files
authored
Fix Refresh Order command, to use orderer method
1 parent b384e89 commit 6c9c747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/RefreshOrdersCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function handle()
3131
$reflectionModel = new ReflectionClass($this->argument('model'));
3232
if (in_array("Eloquent\Orderer\Orderable", array_keys($reflectionModel->getTraits()))) {
3333
$model = app($this->argument('model'));
34-
$model->refresh();
34+
$model->orderer()->refresh();
3535
$this->info(sprintf('Fixing up %s orders', class_basename($model)));
3636
}
3737
$this->info('Finished up refreshing the orders');

0 commit comments

Comments
 (0)