Skip to content

Commit

Permalink
Fix an error running resave console commands
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Aug 30, 2022
1 parent a31cf8f commit 78619ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SuperTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ private function _registerResaveCommand(): void
$e->actions['supertable-blocks'] = [
'action' => function(): int {
$controller = Craft::$app->controller;
$query = SuperTableBlockElement::find();
return $controller->resaveElements($query);

return $controller->resaveElements(SuperTableBlockElement::class);
},
'options' => [],
'helpSummary' => 'Re-saves Super Table blocks.',
Expand Down

0 comments on commit 78619ec

Please sign in to comment.