Skip to content

Commit

Permalink
SELECT before FROM
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Oct 26, 2022
1 parent b5bb99a commit 9969967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Gc.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ public function removeEmptyTempFolders(): void
$this->_stdout(' > removing empty temp folders ... ');

$emptyFolders = (new Query())
->from(['folders' => Table::VOLUMEFOLDERS])
->select(['folders.id', 'folders.path'])
->from(['folders' => Table::VOLUMEFOLDERS])
->leftJoin(['assets' => Table::ASSETS], '[[assets.folderId]] = [[folders.id]]')
->where([
'folders.volumeId' => null,
Expand Down

0 comments on commit 9969967

Please sign in to comment.